{"name":"@dependents/detective-less","version":"3.0.1","description":"Find the dependencies of a less file","main":"index.js","publishConfig":{"access":"public"},"scripts":{"lint":"eslint index.js \"test/*.js\"","fix":"npm run lint -- --fix","mocha":"mocha","test":"npm run lint && npm run mocha","test:ci":"c8 npm run mocha"},"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":">=12"},"dependencies":{"gonzales-pe":"^4.3.0","node-source-walk":"^5.0.0"},"devDependencies":{"c8":"^7.13.0","eslint":"^8.36.0","mocha":"^9.2.2"},"gitHead":"c3e019e42d8acf5cef8641742272f3c10715b8a8","_id":"@dependents/detective-less@3.0.1","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-NjjCPJbx/za2287T6gnC5zD2IFSplro1evaTV9yvx3jnPpHi7s8PwJvh9vvJRFnMx5nbakodwNOnFvk8+9YQTg==","shasum":"ff78ac73ba51ebc8f988a1c0894e46fcf9123b33","tarball":"http://registry-npm.ywwl.com/@dependents/detective-less/download/@dependents/detective-less-3.0.1.tgz","fileCount":4,"unpackedSize":5119,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzG5qot5IFfuXW3LBnmCQ/C9OApe7z3paRrCKAQFSA6AiEA2CPu+h5UlHrqqS3AioI1mz1zeOhtByhBjqZjiY/V42g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFeHOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5Ew/+IbfgvisbeWInORqrcvftD4dFSWH7b9kM+Iqm5r6EZIoHB4vo\r\n/qvlrXfWJKOLEHQAl17s5mPE7DFF1TprMnDXhI+ZF0Q5ZV93m8IFViHrqEVd\r\nkdwyiPD7OXnDwYtw5WXcelt8ZVWbEDd7pydZC6QN/6t8wMtf2JrIK5ezKEvY\r\n1bPGna4NU+lwJafQxgU7guKHPQanBM+X4V7K7xkBY+G3d9muVFoesS6HGz7L\r\nzxQtDG4rPvrnK9KrdFdgh+BfKFuEfVMtHLl+JwiqqQgJnQpe4uDD3aS0qqNq\r\nFLqeRqsAxg4QWQNBdNcZL55pOMmt0kY3yuR7XX7PI5h73CvMo9YPnfdNo3FZ\r\nm0fAADcnj+mlezGm2Na6eNF2zOdfY6Bke057BusO7DZRCnBEo4Szgea8+8UI\r\nuea7ZSy9hx28J6kdIdks0T3H6S78QD3hvtdbchkSKvWDdCTzCiLGSFpHDCJ/\r\nofnbLCvOtD5YEfHSe5BiQotRu6uRYCC9ejSbh6iyVjJhjtpEl9mA3r+XyWJk\r\nFzLq2WHIlKYBxVpL828sbHeaXxJ7mjWJXCxA9fFGaBdiTDRviVNlCk2e3gz0\r\n+o5dmvlzo7VMlq0PeIWvjF4Rn54s3X0ISjqnyWpenn7v0pen0tO0AhNCjVfE\r\nLvsjklu6XKZtHRL/mhqPrc2jtZyxZC6RToM=\r\n=FbjL\r\n-----END PGP SIGNATURE-----\r\n","size":2335,"noattachment":false,"key":"/@dependents/detective-less/-/@dependents/detective-less-3.0.1.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"},{"name":"mrjoelkemp","email":"mrjoelkemp@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-less_3.0.1_1679155662544_0.6600822202828598"},"_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```js\nconst fs = require('fs');\nconst detective = require('@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### 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":1679155662717,"_cnpm_publish_time":1679155662717,"dist-tags":{"latest":"6.0.1"}}