{"_id":"detective-stylus","_rev":"3318897","name":"detective-stylus","description":"Get the dependencies of a Stylus file","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"time":{"modified":"2024-06-11T09:02:49.000Z","created":"2015-06-27T22:14:54.154Z","5.0.0":"2024-04-14T06:42:35.008Z","4.0.0":"2023-05-05T06:44:27.094Z","3.0.0":"2023-03-19T07:37:33.296Z","2.0.1":"2022-03-19T07:00:23.468Z","2.0.0":"2022-02-20T14:09:58.154Z","1.0.3":"2022-02-20T14:07:59.979Z","1.0.2":"2022-02-20T08:04:50.880Z","1.0.1":"2022-02-19T14:34:14.456Z","1.0.0":"2015-06-27T22:14:54.154Z"},"users":{"prisis":true},"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-detective-stylus.git"},"versions":{"5.0.0":{"name":"detective-stylus","version":"5.0.0","description":"Get the dependencies of a Stylus file","main":"index.js","scripts":{"lint":"xo","fix":"xo --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":">=18"},"devDependencies":{"c8":"^9.1.0","mocha":"^10.4.0","xo":"^0.58.0"},"xo":{"space":true,"ignores":["test/fixtures/*"],"rules":{"arrow-body-style":"off","capitalized-comments":"off","comma-dangle":["error","never"],"curly":["error","multi-line"],"operator-linebreak":["error","after"],"object-curly-spacing":["error","always"],"space-before-function-paren":["error","never"],"unicorn/prefer-module":"off","unicorn/prefer-node-protocol":"off","unicorn/prefer-top-level-await":"off","unicorn/prevent-abbreviations":"off"}},"_id":"detective-stylus@5.0.0","gitHead":"d56b507132b0c3972a4a553397073d8679013026","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"shasum":"11c0464350d0b1484d6a7e281547280500c8353f","size":2184,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-stylus/download/detective-stylus-5.0.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-stylus_5.0.0_1713076954830_0.6320941370896709"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-14T06:42:35.008Z","publish_time":1713076955008,"_source_registry_name":"default","_cnpm_publish_time":1713076955008},"4.0.0":{"name":"detective-stylus","version":"4.0.0","description":"Get the dependencies of a Stylus file","main":"index.js","scripts":{"lint":"xo","fix":"xo --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":">=14"},"devDependencies":{"c8":"^7.13.0","mocha":"^10.2.0","xo":"^0.54.2"},"xo":{"space":true,"ignores":["test/fixtures/*"],"rules":{"arrow-body-style":"off","capitalized-comments":"off","comma-dangle":["error","never"],"curly":["error","multi-line"],"operator-linebreak":["error","after"],"object-curly-spacing":["error","always"],"space-before-function-paren":["error","never"],"unicorn/prefer-module":"off","unicorn/prefer-node-protocol":"off","unicorn/prefer-top-level-await":"off","unicorn/prevent-abbreviations":"off"}},"gitHead":"da6ba099cafce52dfd1dbd742e2836217ec7bfd9","_id":"detective-stylus@4.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"ce97b6499becdc291de7b3c11df8c352c1eee46e","size":2156,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-stylus/download/detective-stylus-4.0.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-stylus_4.0.0_1683269066941_0.9746538918291063"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-05T06:44:27.094Z","publish_time":1683269067094,"_source_registry_name":"default","_cnpm_publish_time":1683269067094},"3.0.0":{"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":{"shasum":"c869795a7d6df7043ab6aee8b1a6f3dd66764232","size":1927,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-stylus/download/detective-stylus-3.0.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-stylus_3.0.0_1679211453157_0.6782007206044738"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-19T07:37:33.296Z","publish_time":1679211453296,"_cnpm_publish_time":1679211453296},"2.0.1":{"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":{"shasum":"d528dfa7ef3c4eb2fbc9a7249d54906ec4e05d09","size":1899,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-stylus/download/detective-stylus-2.0.1.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-stylus_2.0.1_1647673223334_0.6349538618534349"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-19T07:00:27.083Z","publish_time":1647673223468,"_cnpm_publish_time":1647673223468},"2.0.0":{"name":"detective-stylus","version":"2.0.0","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":"d5fdd7e69467a589391f92454947ef3a28aebb56","_id":"detective-stylus@2.0.0","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"00ca1208947f07c012483c27bfcd36a3bc89fbc8","size":1181,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-stylus/download/detective-stylus-2.0.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-stylus_2.0.0_1645366198004_0.9131322763567475"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-20T14:10:02.870Z","publish_time":1645366198154,"_cnpm_publish_time":1645366198154},"1.0.3":{"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":{"shasum":"20a702936c9fd7d4203fd7a903314b5dd43ac713","size":1164,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-stylus/download/detective-stylus-1.0.3.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@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,"_cnpmcore_publish_time":"2022-02-20T14:08:05.059Z","publish_time":1645366079979,"_cnpm_publish_time":1645366079979},"1.0.2":{"name":"detective-stylus","version":"1.0.2","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":"f4704ddbf938c7e96b3345fc43325107a43394fb","_id":"detective-stylus@1.0.2","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"b835213ffbdbf0230bfc4ecf93923414dfdd07e3","size":1176,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-stylus/download/detective-stylus-1.0.2.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-stylus_1.0.2_1645344290691_0.6012702221085062"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-20T08:04:54.596Z","publish_time":1645344290880,"_cnpm_publish_time":1645344290880},"1.0.1":{"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":{"shasum":"b8a8e2213b3c4df9c85d15d51aba0f80bbff4bef","size":1180,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-stylus/download/detective-stylus-1.0.1.tgz"},"_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-stylus_1.0.1_1645281254129_0.22042673497980125"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-19T14:34:26.112Z","publish_time":1645281254456,"_cnpm_publish_time":1645281254456},"1.0.0":{"name":"detective-stylus","version":"1.0.0","description":"Get the dependencies of a Stylus file","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-detective-stylus.git"},"keywords":["stylus","ast","static","analysis","dependencies"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-stylus/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-stylus","gitHead":"12b13c66da78813734306402b99e296c91135d35","_id":"detective-stylus@1.0.0","_shasum":"50aee7db8babb990381f010c63fabba5b58e54cd","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"dist":{"shasum":"50aee7db8babb990381f010c63fabba5b58e54cd","size":1423,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-stylus/download/detective-stylus-1.0.0.tgz"},"publish_time":1435443294154,"_cnpm_publish_time":1435443294154,"_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","_attachments":{},"homepage":"https://github.com/dependents/node-detective-stylus","bugs":{"url":"https://github.com/dependents/node-detective-stylus/issues"},"license":"MIT"}