{"name":"@dependents/detective-less","version":"6.0.1","description":"Find the dependencies of a less file","type":"module","exports":{".":"./index.js"},"publishConfig":{"access":"public"},"scripts":{"lint":"xo","fix":"xo --fix","uvu":"uvu test -i fixtures","test":"npm run lint && npm run uvu","test:ci":"c8 npm run uvu"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-detective-less.git"},"keywords":["detective","less","ast","dependencies"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"contributors":[{"name":"Michael Orenstein","email":"michael@whiteshadows.me"}],"license":"MIT","bugs":{"url":"https://github.com/dependents/node-detective-less/issues"},"homepage":"https://github.com/dependents/node-detective-less","engines":{"node":">=20.19.0 || >=22.12.0"},"dependencies":{"gonzales-pe":"^4.3.0","node-source-walk":"^8.0.0"},"devDependencies":{"c8":"^11.0.0","uvu":"^0.5.6","xo":"^2.0.2"},"gitHead":"abfafa9519bc42aa1538c4de24d4a5c2fe8d23c8","_id":"@dependents/detective-less@6.0.1","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-WRFmqQuZBajKzksO3kWCxskitTqxTdZ/xkyWn7gX+jvnmEeZauH8ngLs5RiluZZrXBNzngJd7kTrN0QwVhgAHg==","shasum":"11bba3a33a556742d44c102928dad82c6a5bf025","tarball":"http://registry-npm.ywwl.com/@dependents/detective-less/download/@dependents/detective-less-6.0.1.tgz","fileCount":4,"unpackedSize":5771,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFZBnR2bmH6X2BkzOPNzd+CPWU8NkddIougAQiFEaFVjAiEAhH+Z7ePb27Eg1xd1izUZqIT3KIwaZMVF0b9o7TH4stU="}],"size":2600,"noattachment":false,"key":"/@dependents/detective-less/-/@dependents/detective-less-6.0.1.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"mrjoelkemp","email":"mrjoelkemp@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/detective-less_6.0.1_1779773983350_0.08353794627705824"},"_hasShrinkwrap":false,"readme":"# @dependents/detective-less\n\n[![CI](https://img.shields.io/github/actions/workflow/status/dependents/node-detective-less/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/node-detective-less/actions/workflows/ci.yml?query=branch%3Amain)\n[![npm version](https://img.shields.io/npm/v/@dependents/detective-less?logo=npm&logoColor=fff)](https://www.npmjs.com/package/@dependents/detective-less)\n[![npm downloads](https://img.shields.io/npm/dm/@dependents/detective-less)](https://www.npmjs.com/package/@dependents/detective-less)\n\n> Find the dependencies of a less file\n\n```sh\nnpm install @dependents/detective-less\n```\n\n**Note:** This is specific to the .less style syntax.\n\nIt's the LESS counterpart to [detective](https://github.com/substack/node-detective), [detective-amd](https://github.com/dependents/node-detective-amd), and [detective-es6](https://github.com/dependents/node-detective-es6).\n\n* The AST is generated using the [gonzales-pe](https://github.com/tonyganch/gonzales-pe) parser.\n\n## Usage\n\n### ESM\n\n```js\nimport fs from 'node:fs';\nimport detective from '@dependents/detective-less';\n\nconst content = fs.readFileSync('styles.less', 'utf8');\n\n// list of imported file names (ex: 'foo.less', 'foo', etc)\nconst dependencies = detective(content);\n\n// or to also detect any url() references to images, fonts, etc.\nconst allDependencies = detective(content, { url: true });\n```\n\n### CommonJS\n\n```js\nconst { default: detective } = require('@dependents/detective-less');\n```\n\n### Options\n\n* `url` (optional): (`Boolean`) also detect any `url()` references to images, fonts, etc.\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1779773983492,"_cnpm_publish_time":1779773983492,"dist-tags":{"latest":"6.0.1"}}