{"name":"detective-stylus","version":"1.0.3","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","devDependencies":{"eslint":"^5.16.0","mocha":"^6.2.3"},"gitHead":"2d7f078051cfc904a62fd47e84d1fab8600449b0","_id":"detective-stylus@1.0.3","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-4/bfIU5kqjwugymoxLXXLltzQNeQfxGoLm2eIaqtnkWxqbhap9puDVpJPVDx96hnptdERzS5Cy6p9N8/08A69Q==","shasum":"20a702936c9fd7d4203fd7a903314b5dd43ac713","tarball":"http://registry-npm.ywwl.com/detective-stylus/download/detective-stylus-1.0.3.tgz","fileCount":3,"unpackedSize":2576,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEks/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqP3w/+OgSZNCvTPhHdmwvKuhyXu4l/xZI5QwBIV15o/RPOOmlJqUZP\r\ns/iu0NvgCTZZ9jwz4etgNt9YpTqyzlnCR11q/EZE+ctDpZFgTWGlaToTd7G4\r\nTmi+ZZiCC58cfPffiUBHeaNmmnf/x9Toea+QST7PMikrrOeVa95GCll5ZPxa\r\nriskfa7cyQ5AvLt++6ylpQcT9ymtPlToh/riEI9F384gbGqQ7yGWlBcpHmKn\r\nTkvvetFRX3EJ+iTZijoyKzuk6rifIcgs1z/qI5MD10FTAq0JYxK+jcMpTKwC\r\nsFQlQWcn3cYHM7ay9Xp55irKPGfW60pErhKYTW/lYKVQVDOcOb6NZoV9eisq\r\nLobBMzzjNeLdXfrZXvf4cRkoVQvvcLPehMzSaqWakpt6DSMQUaY4eHSKV6m5\r\n0s4XlBkUcxOSAnzE+OqjajzCy7AqjrTMLGbd12ixg9HWmEEPldgR7gjMcAzj\r\n52W5mhWqZQCcS7TEYj5zDCvGsZU8+JmW8ZvrxV+USW2ZdZLSM/cjrqyLMg/3\r\nTigtuYG8E+sP+JvXDOO5QXcvBQBH7h2LTXQcAtWLAtB89xWKu4Xq8RLJmmus\r\nMV7TC7Pd+sSXK7BarUthag1P+f1V5BTF5W0TMFo2VGBnrRcd6tbImXo1WFlD\r\n9YM+/+/78bMmkSTWj1acGm0NL1oOGFYZGlU=\r\n=7JN3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB3sFzEnPkK/xkWBaT8q6MW8GJCZ/YjC6vHC+kzJ5sPvAiBjyO1cJZujsRevfW0SgPACPOcmZlKNTct094B9nfzrog=="}],"size":1164,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-1.0.3.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"mrjoelkemp@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-stylus_1.0.3_1645366079816_0.3254341412644248"},"_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":1645366079979,"_cnpm_publish_time":1645366079979,"dist-tags":{"latest":"6.0.0"}}