{"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":{"integrity":"sha512-M6G9KFUrO++qLBVD6hu4+dI8149OY+tigFKXgytTpU1kBOBIL4rMvSn1VlNp+NVlSnPFV8lXxN/ozfcx2YRKfA==","shasum":"f5cf1d267c818503e8456120b0624bf97e5adc75","tarball":"http://registry-npm.ywwl.com/@dependents/detective-less/download/@dependents/detective-less-3.0.0.tgz","fileCount":4,"unpackedSize":5071,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG+G9Qn8RTQd+WYifv7Dq6jpXW525qh2K2WmKWCBKM88AiEAtgG7/ZQ6AwzfaT1/OgaQLQFG3W2S6t9gOgBJKvlVASU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFeAqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpj4RAAiOuCVsYQ5wIIS9Xk0j+Msd7r999rlvTGog5Rw60dW3iCAVRU\r\nqbr5tFZPeTiIp8mlEmUO5tA+Fc2uuPPs2VMmiE15YUU8hP+7UkDP27FzewNr\r\nVgUzATspMNqTS8m+JB7Yng4HAaDZHOKvaXVwCSErCqB5ZNAgvVS4kDJSIcnR\r\nEA9OwQENjvTMAnnamzDpE4E1kifAwm1Z6u/fMnuBfGqH/lwjJHNGKntIlJV6\r\nmW4wBDURgtDJF9QwWrEdHZmxG3bbxniC7m6RwP2zqTMfT9gHClriQyWoqO27\r\nF4T4fd0/EkeP3+M8NHzSJ3T4Bgh5zHFmb7B7OTNRKw0e5yWs+s/+dG50DPnc\r\nlVNgD3SeocQr9Krj5X/uw6zIK3skx8tuCvq6EPFeYJ15QWimzXXISVsN7yKM\r\n/1oc4Z4QKdKy50durLHgc7syNjROuWvQUfK9MK8m2qPC48naOVVq7PjYL1ve\r\nGdUgFDSZcZ5moZkJiPTq355sZn9FZbG95pPja2srMbRYiquSI+jA5VBv/WG4\r\nWKwahzx3N3RJ6Eqka7hsdpnVP779j+V3ChEgPHeFs/V0azGz0yqRwtoguX/e\r\n1x+5njYLQ15lKwDI4GgO6s5u/LDveZ8Nv9cOq0s3wxw1MmKBQjbb8LpK9oA6\r\nWhVT+7D8E0w73b6eqiwKmbRnkM76YpxaCJ8=\r\n=vrEw\r\n-----END PGP SIGNATURE-----\r\n","size":2334,"noattachment":false,"key":"/@dependents/detective-less/-/@dependents/detective-less-3.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_3.0.0_1679155241960_0.28848655203509477"},"_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":1679155242094,"_cnpm_publish_time":1679155242094,"dist-tags":{"latest":"6.0.1"}}