{"name":"detective-stylus","version":"2.0.1","description":"Get the dependencies of a Stylus file","main":"index.js","scripts":{"lint":"eslint index.js \"test/*.js\"","mocha":"mocha","test":"npm run lint && npm run mocha"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-detective-stylus.git"},"keywords":["stylus","ast","static","analysis","dependencies"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"https://mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-detective-stylus/issues"},"homepage":"https://github.com/dependents/node-detective-stylus","engines":{"node":">=6.0"},"devDependencies":{"eslint":"^5.16.0","mocha":"^6.2.3"},"gitHead":"d8886aac9269e03b0a201f9bfa88d83b6ef1c038","_id":"detective-stylus@2.0.1","_nodeVersion":"16.14.1","_npmVersion":"8.5.0","dist":{"integrity":"sha512-/Tvs1pWLg8eYwwV6kZQY5IslGaYqc/GACxjcaGudiNtN5nKCH6o2WnJK3j0gA3huCnoQcbv8X7oz/c1lnvE3zQ==","shasum":"d528dfa7ef3c4eb2fbc9a7249d54906ec4e05d09","tarball":"http://registry-npm.ywwl.com/detective-stylus/download/detective-stylus-2.0.1.tgz","fileCount":4,"unpackedSize":3769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiNX+HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqx8w//QHfFFEEGBQKF2Ua75as6NUdGOVnhCi45LqiO0+FEIXebbcr9\r\nmnSv9HgNdVnXMXsqUVpi49LA6g2Pb0lCM2or/C1xMfonNv13jYCEqLnpwNcv\r\nZ8WRBIfonvxm1XsX/V2JY/ikoLyJUDRLdG5aEpyNQRehwOspszCOat18R6uH\r\ndCO8uUIvUsi70dUenu7O2sZiNxrPPhGWGnPRfAaDjK/Li3EHuopYE4RK/Yzb\r\nCvwyU6yfPevDRjSn8MZeuJTGlK+1ghVyT1eiIvfMqfuMv5LDBAUUMOKefFB3\r\nLL/Ci1GNZWAMwwTkRk5NHIL9oyecuEh3nkqZAsfbHljqvfgXbaSkkQmM0biD\r\nakIVMGksqYIc3CnSQC46w9Nq39ElwKVjLk1uaoKMkiZSijuk/E+FK8SCVOkh\r\nQKUZ2qGXxo5FJ05Rv67s4WMCj6nfH9Q1NqJsYqteQrV+E3xBC//fpt1EvywO\r\n5X3ZskX3y7ilGNpE+c53XPVEtc7H9F90Zcji/ewr+yXwopg0Qp3qdnEc5hrr\r\nYqx/R6Ivb0UaxtJklZ/HEsYds/5InGH8r2Gape4ufEP9Mt0o/tz1XzM7TAUH\r\nsAwWSOR0Exy6BQ8FsiZwTt/EvPRAO2WloPtyNVvpBmCKjzIVL2DyfXJGSgwc\r\naLO2X7BC7wOnTOmZTwc99zMq7cFP3/rnjJg=\r\n=nivX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5xvtZYQgIkmlTokvBLH5vkXhDOujAjJjxiJzhfyPZOQIhAJYVH3wgBMb4mhmV7+eUK6aTE1LX628i1uYi1GSka2F1"}],"size":1899,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-2.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-stylus_2.0.1_1647673223334_0.6349538618534349"},"_hasShrinkwrap":false,"readme":"# detective-stylus\n\n[![CI](https://img.shields.io/github/actions/workflow/status/dependents/node-detective-stylus/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/node-detective-stylus/actions/workflows/ci.yml?query=branch%3Amain)\n[![npm version](https://img.shields.io/npm/v/detective-stylus?logo=npm&logoColor=fff)](https://www.npmjs.com/package/detective-stylus)\n[![npm downloads](https://img.shields.io/npm/dm/detective-stylus)](https://www.npmjs.com/package/detective-stylus)\n\n> Find the dependencies of a Stylus file\n\n```sh\nnpm install detective-stylus\n```\n\nIt's the Stylus counterpart to\n[detective](https://github.com/substack/node-detective),\n[detective-amd](https://github.com/dependents/node-detective-amd),\n[detective-es6](https://github.com/dependents/node-detective-es6),\nand [detective-sass](https://github.com/dependents/node-detective-sass).\n\nNote: this detective uses a regex to find the `@import` or `@require` statements.\n\n## Usage\n\n```js\nconst fs = require('fs');\nconst detective = require('detective-stylus');\n\nconst content = fs.readFileSync('styles.styl', 'utf8');\n\n// list of imported file names (ex: '_foo.styl', '_foo', etc)\nconst dependencies = detective(content);\n```\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1647673223468,"_cnpm_publish_time":1647673223468,"dist-tags":{"latest":"6.0.0"}}