{"name":"@dependents/detective-less","version":"3.0.2","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":">=12"},"dependencies":{"gonzales-pe":"^4.3.0","node-source-walk":"^5.0.1"},"devDependencies":{"c8":"^7.13.0","uvu":"^0.5.6","xo":"^0.52.4"},"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":"4224ee974e67df2dbf37e0fc0a6628ce760e666e","_id":"@dependents/detective-less@3.0.2","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-1YUvQ+e0eeTWAHoN8Uz2x2U37jZs6IGutiIE5LXId7cxfUGhtZjzxE06FdUiuiRrW+UE0vNCdSNPH2lY4dQCOQ==","shasum":"c6e46997010fe03a5dc98351a7e99a46d34f5832","tarball":"http://registry-npm.ywwl.com/@dependents/detective-less/download/@dependents/detective-less-3.0.2.tgz","fileCount":4,"unpackedSize":5775,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDM9OOHhOWkoS6svfOLqUI2Xc5mQ26urX5KeLaX/MFC6AiAbqff3h9dj84DXuqrViW3KCIZ2yiVh/A66ruo+vpXPNQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPp9EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVQQ//Uwx8K/SryoNbhguhUKvqmDUnMAd0scHqkQkCYMCRwl/VqfaS\r\nAPTtbuUgda3XgSkpq9VE0nmrm/8wWeGlzhGp72xh+IN0Oof1j9HEAdHsUxGQ\r\ncpfqBuzE/dn66MuD1ieU2SflJzYv0pUK4fAfov7ZhkPISnNMrhGlvaAbLoys\r\nKXA11/sOTnbj38nYw/NLXQWianuUyJ2ZNIEsufH2fYqjTwsAnvG7Mg1iXhVo\r\naix1ENbPLnhIrnkpV2pfq5ayX6TSa3M6v+ra9lh2NjI2gfGeocX7gdVFKJTf\r\nT2OZYhmcnU4JLOKum+P7IS6EENUn1PGt0wVHvHOormnHgHOBhyvOkSAY0E5k\r\nrHjo4WLInp5uHGQtrS1NxiyTeHlhTNWD53zS0wAnJjjX7EoawwQcUokouNuY\r\n4xJ1NntsXRrxN35Ynq0hVAfccJooUaBRbLWUariBFZ0fXk1Kz9D1Q05ptdS6\r\n62FvMT7yU2YlGwcn15JlMlOReyLFnKASQR5m/kmPGGbhDfz1QmRQK5BKncEb\r\ngA6qSp0qhM+f/EeUNHhQ9eC7bOeNqVgMai4+3eWU6RjEHdzGWkZaM30OHc0r\r\nTAdwvofepw3/jJ44d/Jda5Mzsg77J1CuumZ8IgGpvq9bmuNJwrbG1Dbq9Ywt\r\noaivb8+1G2sdj+mVlZZC79MMoxTuBhxk9Ek=\r\n=WOZ4\r\n-----END PGP SIGNATURE-----\r\n","size":2585,"noattachment":false,"key":"/@dependents/detective-less/-/@dependents/detective-less-3.0.2.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.2_1681825604346_0.9274548147656145"},"_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":1681825604474,"_cnpm_publish_time":1681825604474,"dist-tags":{"latest":"6.0.1"}}