{"name":"@dependents/detective-less","version":"4.0.0","description":"Find the dependencies of a less file","main":"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":">=14"},"dependencies":{"gonzales-pe":"^4.3.0","node-source-walk":"^6.0.0"},"devDependencies":{"c8":"^7.13.0","uvu":"^0.5.6","xo":"^0.54.2"},"xo":{"space":true,"ignores":["test/fixtures/*"],"rules":{"arrow-body-style":"off","capitalized-comments":"off","comma-dangle":["error","never"],"curly":["error","multi-line"],"operator-linebreak":["error","after"],"object-curly-spacing":["error","always"],"space-before-function-paren":["error","never"],"unicorn/prefer-module":"off","unicorn/prefer-node-protocol":"off","unicorn/prefer-top-level-await":"off","unicorn/prevent-abbreviations":"off"}},"gitHead":"f4b1e79e37d686655c3b9cdf6c28f33c649cad10","_id":"@dependents/detective-less@4.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-0udn+HKjGUzTX4Z+0vXdEJVsO28gxy5QxWjeChK4ZH+bwdvIXLuztiGZk8wLyAG1+LNZ5haVHKr5j1XfJnAkyQ==","shasum":"31b0c4110f8870fe33a3bf275763a49b1743dafd","tarball":"http://registry-npm.ywwl.com/@dependents/detective-less/download/@dependents/detective-less-4.0.0.tgz","fileCount":4,"unpackedSize":5739,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHdpLPCh/0m9e93c+kiyDAKvCdct8q4DynGuA5qBrKpwIhAPLqIyKyWffTUY1FLj9VyGYG7xgl/avrGUD/SIIbr1Kx"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkVKfnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrLxAAnvUUL/swB+/TkIdIlMiPo8chLc8OrPHpsuLO/h5HyYiwEVqe\r\nbCiCApGySFgFVv0+rYYGfShErL+IVvmiXGzXnf9ksYfBK8V7s+QU5tcVRsMd\r\n0zfoURakPdpnN4IDZm0+dU1z1gahF8ohy84Qbi0t0Oe8sqbp2c+gNDHbnOew\r\nod0f29ZsVsoZSLvfML/Oj23p88l/9RM1WtHoIze9eF26Lqbj6jdFZguC9h4v\r\nm24koAqEGPWgMAIb3phvesghmsym6EOjJWfrtNyo2FN5FNgm127lpG0tfqeh\r\nq4iJfaPNt4Bh9Fm041ykmHitxprSSsKu7LgYX8g7zLp3kIsOoQzDxeUFWRiA\r\nz2ul5NJ2ZlBhO6rqUgKnp20aOTO7yQoG/931iEHq9jxQ3yFEUHD0FcCeG4QL\r\n1X1Ug5qWk6FJi5LEP3EZhAtEscnQHaI4ZBRunFIBuedvAltxdoRgBRnMrV4y\r\nFxfeipGz2jenfcohsZTo09OOmJADtx1s8gUdywuOmOLJ/ZifXiDT1rCGPRCF\r\n31jlF5HAr5gRUc0RGG+g5C/xKu8hQsCP3YOTOZaGGK5v5qRfY9QDd9a5d7jA\r\n/kAShVCMjD+egb71tgAvI8CCoc9TpcBg0qEXHBy7lcluArmJrPM7XqZb7EEf\r\nyOyuh6SAi1GBH19UNtfTtcyEKegLHnQ3zgI=\r\n=NRIA\r\n-----END PGP SIGNATURE-----\r\n","size":2577,"noattachment":false,"key":"/@dependents/detective-less/-/@dependents/detective-less-4.0.0.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_4.0.0_1683269607224_0.44087130974786537"},"_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":1683269607358,"_cnpm_publish_time":1683269607358,"dist-tags":{"latest":"6.0.1"}}