{"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":{"integrity":"sha512-tC0gJoMT+r79obmgJkVVs7VCOwD8KGuyIdU2uTbX+4gm+GG3zlqI/PSsp7D4hiGm0uJeKD8pIOt+pREgA1eCPg==","shasum":"b835213ffbdbf0230bfc4ecf93923414dfdd07e3","tarball":"http://registry-npm.ywwl.com/detective-stylus/download/detective-stylus-1.0.2.tgz","fileCount":3,"unpackedSize":2616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEfYiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXLxAAh6+7XobWkFk6zCLUaNSj+x37R4+m4ZZc5guRhhZAq5BT55R3\r\n7CbzeZkwGdcren4RUaJZc/B9ZZ/QZ9JSgmFiV0i6eWrpqtqXvON9MSVTFO1c\r\nLq1ivnMvtNVf8SiqaFP91DTXo8+jc3BrHoyQjLA8dt/nx8FS+tX9m8M8MuWX\r\n5Hv1IAD7K42f/4/jcAGh71ewIvIVkSmgfEQT5mBiUMpjbq+ltm5sf58kI1jd\r\nyNGwEV09f7NofvpJM+JzuCIHZPZxm3oMJdrJOaubAmXHsMqLp1tPTs3iB+1q\r\nZBWyd56t/S7BWMD6pqxlNUFGe0Vzr77uVzZCvKns6FKDEpapQztG8F1rGss7\r\n4OBaqxBCKjb543CSTqX2RgQHlld1nyEs+AqmYzDxt1/MU4LjYpiQfldI5CAF\r\nhlesBDLW3Q31kgxmQcmcUDj7drkMVSYI0WzARlsJh7cPzmbs6EyTgYImC2oh\r\nnrPp0d038aA7qGbzSRhXnLt3DsUtWGLJkVkmRCDVeH3qXTxh/k/67j6sF1Tv\r\n7wr+l6tikDLhqJelcQ26GU7BIsWpu3Aw2umq75+h9AHqGza3tR50dGX4p89Y\r\ni4HGohZPyLaHR1ymvmR9UqdD/LnZJ3/S7mAWHRV+ynMqGMW30nTnx6gWeQ0w\r\ngORxjcOSI+/BmZ3jrGt467eRhVWh88C1nrY=\r\n=7NSx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9iQDtl5Yt4PoECdD0Puv56Sg265xbHRn0ySqWl9bXqQIhAI7SaAvECxEQiGtyzoCkH+HcmpUEtp3s/TTTqysCGGZm"}],"size":1176,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-1.0.2.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.2_1645344290691_0.6012702221085062"},"_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":1645344290880,"_cnpm_publish_time":1645344290880,"dist-tags":{"latest":"6.0.0"}}