{"name":"detective-stylus","version":"1.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":"d2ca0fd9491a878494bf1c594ee0ef04c6835b66","_id":"detective-stylus@1.0.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-oUsIoHNl6fNJdHn9csnYE6iPUQboYZ0RUYsXHCOZq7epM8rhMOgb4sZwGQRMk2WbU8kZCxisSLENUg01hUBx0A==","shasum":"b8a8e2213b3c4df9c85d15d51aba0f80bbff4bef","tarball":"http://registry-npm.ywwl.com/detective-stylus/download/detective-stylus-1.0.1.tgz","fileCount":3,"unpackedSize":2606,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEP/mACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4LA/6AtUQEXxtua6mlWejayA2nh07BCWPkVjFtihcA3Shs/DF9qey\r\n+ZOXnACybt6qSzUUVEp54SWwIE9whfKK4YKrjb+et+ffSKFN0O5fCg9GwDKX\r\nIVbbJrFQq1tD6efwnn6dj07/CKyC+s/CmwvNQlYL1Fg5RyElC1LRGqLIucst\r\nNao9cN4uQABYgV2u/mSOXVrdOtge7p0F8pd6x9uJP3WoeB3mJ19hf/u4CNUo\r\nRpHAx5XUS4U9OrU+Z6jBc//RSokwEHtnfPsmTdaWfRuoc0dwObHfUnisiqRi\r\noHht/HjRhM7NJlqXL5rIRx+YrT5DXWLQz8NaPaKsVdiuESZ/EuUFAzn13nZk\r\nblowQW51GPfiCqB3MiWtk+8rOQmXjkuGQ+ae4RhN+I4tZ/nxWheJF6x1W3RR\r\nB4v/+1DHgF3jTRDmzQpFwfJUtTWgdUIkZPRA44e4gShhJ+X5Pi5YvRNI3eGD\r\nW9HKQHm+ljn4Vk9xUnvGeRRY9B2fyN58Cmw1zzynNQ9sEVA4HMSdGeAYqAuo\r\nJs1nc3GUuVn/fgb3iGBfoMurk5sAzwAacOtC1Zu0toB1yjgnqk+GW5ZkG1cA\r\nAOQSbkFbFeMYl9h2TJ8+n+Va3E5OLmxFq3IMmpxjs8gJAkzN9JFgV/X5GAXG\r\nn4EXck40zQDsQ1Ln9cssYLXiLQ+kaOnbKBA=\r\n=IRo7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCr61OsQR+Dr/ITDKdgwX8Bj0yYaIJECPzA8QEqX1dAdgIhAJ0Rhh9/FWhDvtASfFaJG93MimgtAlcllHY4XlyhRYwe"}],"size":1180,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-1.0.1.tgz"},"_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-stylus_1.0.1_1645281254129_0.22042673497980125"},"_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":1645281254456,"_cnpm_publish_time":1645281254456,"dist-tags":{"latest":"6.0.0"}}