{"name":"detective-stylus","version":"6.0.0","description":"Get the dependencies of a Stylus file","type":"module","exports":{".":"./index.js"},"scripts":{"lint":"xo","fix":"xo --fix","uvu":"uvu test","test":"npm run lint && npm run uvu","test:ci":"c8 npm run uvu"},"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":">=20.19.0 || >=22.12.0"},"devDependencies":{"c8":"^11.0.0","uvu":"^0.5.6","xo":"^2.0.2"},"gitHead":"e66748cc80e8234a987b9190f9ad60d332b98151","_id":"detective-stylus@6.0.0","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-H12WWqOaajhdVUnePu3s3CyqQdYFcAJhgztDWDqu2giechAGPewXo0KctAd/aHM9bP+mpYvMHty6iAjzjcQNLg==","shasum":"9c76cc6d447427c3897547926f7048ff3513150b","tarball":"http://registry-npm.ywwl.com/detective-stylus/download/detective-stylus-6.0.0.tgz","fileCount":4,"unpackedSize":3962,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCombn64+uJg+KpJEUJRc9gVUTr1mJC+6uC/+ESwNf+NwIhAJZaY+yeeFE7GWfFpwGSUIhs/7CHQw9xHhTxOXCvBse0"}],"size":2005,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-6.0.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"mrjoelkemp","email":"mrjoelkemp@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/detective-stylus_6.0.0_1779193943270_0.2040343301147145"},"_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### ESM\n\n```js\nimport fs from 'node:fs';\nimport detective from '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### CommonJS\n\n```js\nconst { default: detective } = require('detective-stylus');\n```\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1779193943406,"_cnpm_publish_time":1779193943406,"dist-tags":{"latest":"6.0.0"}}