{"name":"detective-stylus","version":"3.0.0","description":"Get the dependencies of a Stylus file","main":"index.js","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-stylus.git"},"keywords":["stylus","ast","static","analysis","dependencies"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-detective-stylus/issues"},"homepage":"https://github.com/dependents/node-detective-stylus","engines":{"node":">=12"},"devDependencies":{"c8":"^7.11.0","eslint":"^8.10.0","mocha":"^9.2.1"},"gitHead":"d43121e22ba46e2d36896ec75b7987ef9d6928ca","_id":"detective-stylus@3.0.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-1xYTzbrduExqMYmte7Qk99IRA3Aa6oV7PYzd+3yDcQXkmENvyGF/arripri6lxRDdNYEb4fZFuHtNRAXbz3iAA==","shasum":"c869795a7d6df7043ab6aee8b1a6f3dd66764232","tarball":"http://registry-npm.ywwl.com/detective-stylus/download/detective-stylus-3.0.0.tgz","fileCount":4,"unpackedSize":3853,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG0Iw5rBbSqAnfolgfV8/y78BlADnyRrpmeLLVGSbMZmAiEAvFcS6h/i/L6/0wiIarfBEr0HrD9yZmIRWvEnle7ChDA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFru9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo2OQ//aNz+2+oHKgUgB9I0is0AQcHKdZOfpVNwX6aLUDj9OJo/Us2r\r\n5qMp5n1YnjpOdx4Bf185jb0pAPFYLHRD8lXzKQnSoclUpx31LBI65bQTUW9X\r\nwS7WH26Sf0xQNCXKAWD8W0HsgKS9RnzXvvC8LLnHbkC43kPUCe/w3zfFepAH\r\nc2HNgV1QgOlfYvuCTQXVxuMnowgqfZS/7qzMmn2YNsR2dBsV4tcJct8Zx1cA\r\na747s4svRq/Lf8yaOwAzA2YV37ZC9cHa3Co7323k8FBm48UAdZpROzaRmzEM\r\nWS/Muzc+dMefWPoUBhApJBf1DoYMnaWif+YGX5HgaMlyy3FhviUh6GvThPQ7\r\nXLDkZKKpAQCa5kK76lXFCeSiTLYfYoVGhaXIUfpJ4nwLojHSoSIfaLfS9YXR\r\nrX1zLz0BP07e2p9kU8j4kOhLWAFCBh/eJfHimiFmy35BGHd91r3bYlqshyTa\r\n9HB6GGMrjhodVYJxMJb892ORp57FE2tBWL75OxTg4dOucg0FL+QupibgJO3R\r\n4nj6vAc3mLNhM8BAqzE+OP5QIoBw9yZCHOSAWddKXnQ1Z+c58VJxEVSjzdsa\r\nWLbAG/Iq3xHtfuwzreIgrimfG98GRwodLNgRBPOiKLbP//InoWEy/mxVvTqb\r\nWSF88ALyWoKjlrJav90OyTVorM9XUDwXJiI=\r\n=rf5j\r\n-----END PGP SIGNATURE-----\r\n","size":1927,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-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-stylus_3.0.0_1679211453157_0.6782007206044738"},"_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":1679211453296,"_cnpm_publish_time":1679211453296,"dist-tags":{"latest":"6.0.0"}}