{"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":{"integrity":"sha512-HxWhEeFuTTltHBRzjbMZpLswnaua9hlt1E/8GyjfzOqYN4h2XIyRvt1qrX2Eql0E/cR9Wu+7bAHYNSMjVir2eg==","shasum":"00ca1208947f07c012483c27bfcd36a3bc89fbc8","tarball":"http://registry-npm.ywwl.com/detective-stylus/download/detective-stylus-2.0.0.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\nwsFzBAEBCAAGBQJiEku2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpC1A//X1pHPCYNnHS/Mlg58dr6PJeyVbjOZjAX1k3WfB2VoTH+mScz\r\nipwJYCjtceZ+4C/q441vqaaPVxJEon6MLpohnyXeQ6KQCPf5d9n9Ly8lreBl\r\nnt5DLVbs6sxcV+V8MVBKgl7RWy23/mgiWA4nqxUYTdnH9Emd3Ee+WBRfoRcL\r\n7z/vi4Y4Uxbkw95GgXiY4OSXhRWhttquDfpGayxMSQY65NAwYJu6CoVvafW9\r\nnA1FbDcUw4HXYgsSeICGavdetjeTRs5T5piq4lTYXP5QsP2wxf2SrBnt6wod\r\nWXIWKt3M+8HrA2CuXDy3EKsxEDuEG3nlvnchkX/aNAySvt81aCz1XtLWwvPO\r\ns7IIArij101ZMPEqg3gt6euOtz+938hw5uAl63EcN5wBLDxtpXiBqDMQ3Ojv\r\n00qpJe4labMRCGkpZIttOtV/cipeaRk/9vWp8KE+KhPPliNRV5qNQ+qeSQD/\r\n3dRTg6ri0Ou34+LNsJXXNBWz93JvmEFvDa6g7zbJMfAzpUMlZBFwA8ZqNz0o\r\nS4gZzrj+oImoYstVX6Iw4rDIiCWOXb1aJFd1U9aGo/9SQGs7jQ57w3vZ0g4h\r\n2KXoL4CjsWoMbovJWX72DWMVcbGhWm3RmQE4R+h6S9+u4Ca5mMruso/TBcey\r\nZOQ+Nc5ROZkVZLX1PwQx+pK0Eks0QLFpQ/w=\r\n=vN3y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqoIhYm2iOHjVs+3qCGqg/wd14Wba1iCIisKx88r4OXAIhAIyRUur7I9um0HT1ASUmIEsi1hTmFIXUMnjRF88myWab"}],"size":1181,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-2.0.0.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_2.0.0_1645366198004_0.9131322763567475"},"_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":1645366198154,"_cnpm_publish_time":1645366198154,"dist-tags":{"latest":"6.0.0"}}