{"_id":"@dependents/detective-less","_rev":"3318914","name":"@dependents/detective-less","description":"Find the dependencies of a less file","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"time":{"modified":"2024-06-11T09:02:54.000Z","created":"2023-03-18T16:00:42.094Z","5.0.0":"2024-04-14T06:41:57.311Z","4.1.0":"2023-05-13T11:49:56.028Z","4.0.0":"2023-05-05T06:53:27.358Z","3.0.2":"2023-04-18T13:46:44.474Z","3.0.1":"2023-03-18T16:07:42.717Z","3.0.0":"2023-03-18T16:00:42.094Z"},"users":{},"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-detective-less.git"},"versions":{"5.0.0":{"name":"@dependents/detective-less","version":"5.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":">=18"},"dependencies":{"gonzales-pe":"^4.3.0","node-source-walk":"^7.0.0"},"devDependencies":{"c8":"^9.1.0","uvu":"^0.5.6","xo":"^0.58.0"},"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"}},"_id":"@dependents/detective-less@5.0.0","gitHead":"b635c766d1213e4797da764764e29dceb9ce195d","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"shasum":"e06bd05352a9e90ad337c740ea98783709e0630c","size":2751,"noattachment":false,"key":"/@dependents/detective-less/-/@dependents/detective-less-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@dependents/detective-less/download/@dependents/detective-less-5.0.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-less_5.0.0_1713076917164_0.648459544149308"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-14T06:41:57.311Z","publish_time":1713076917311,"_source_registry_name":"default","_cnpm_publish_time":1713076917311},"4.1.0":{"name":"@dependents/detective-less","version":"4.1.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.1"},"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":"cc870ff6d846cf740f941be0518c717b71f85bd1","_id":"@dependents/detective-less@4.1.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"4a979ee7a6a79eb33602862d6a1263e30f98002e","size":2735,"noattachment":false,"key":"/@dependents/detective-less/-/@dependents/detective-less-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@dependents/detective-less/download/@dependents/detective-less-4.1.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-less_4.1.0_1683978595882_0.9582563635575536"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-13T11:49:56.028Z","publish_time":1683978596028,"_source_registry_name":"default","_cnpm_publish_time":1683978596028},"4.0.0":{"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":{"shasum":"31b0c4110f8870fe33a3bf275763a49b1743dafd","size":2577,"noattachment":false,"key":"/@dependents/detective-less/-/@dependents/detective-less-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@dependents/detective-less/download/@dependents/detective-less-4.0.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-less_4.0.0_1683269607224_0.44087130974786537"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-05T06:53:27.358Z","publish_time":1683269607358,"_source_registry_name":"default","_cnpm_publish_time":1683269607358},"3.0.2":{"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":{"shasum":"c6e46997010fe03a5dc98351a7e99a46d34f5832","size":2585,"noattachment":false,"key":"/@dependents/detective-less/-/@dependents/detective-less-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@dependents/detective-less/download/@dependents/detective-less-3.0.2.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-less_3.0.2_1681825604346_0.9274548147656145"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-18T13:46:44.474Z","publish_time":1681825604474,"_cnpm_publish_time":1681825604474},"3.0.1":{"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":{"shasum":"ff78ac73ba51ebc8f988a1c0894e46fcf9123b33","size":2335,"noattachment":false,"key":"/@dependents/detective-less/-/@dependents/detective-less-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@dependents/detective-less/download/@dependents/detective-less-3.0.1.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-less_3.0.1_1679155662544_0.6600822202828598"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-18T16:07:42.717Z","publish_time":1679155662717,"_cnpm_publish_time":1679155662717},"3.0.0":{"name":"@dependents/detective-less","version":"3.0.0","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":"a0f9d2ff6fc99db7691e2fa26b60a5d184feeb7d","_id":"@dependents/detective-less@3.0.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"shasum":"f5cf1d267c818503e8456120b0624bf97e5adc75","size":2334,"noattachment":false,"key":"/@dependents/detective-less/-/@dependents/detective-less-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@dependents/detective-less/download/@dependents/detective-less-3.0.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-less_3.0.0_1679155241960_0.28848655203509477"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-18T16:00:42.094Z","publish_time":1679155242094,"_cnpm_publish_time":1679155242094}},"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","_attachments":{},"homepage":"https://github.com/dependents/node-detective-less","bugs":{"url":"https://github.com/dependents/node-detective-less/issues"},"license":"MIT"}