{"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":{"integrity":"sha512-TfPotjhszKLgFBzBhTOxNHDsutIxx9GTWjrL5Wh7Qx/ydxKhwUrlSFeLIn+ZaHPF+h0siVBkAQSuy6CADyTxgQ==","shasum":"ce97b6499becdc291de7b3c11df8c352c1eee46e","tarball":"http://registry-npm.ywwl.com/detective-stylus/download/detective-stylus-4.0.0.tgz","fileCount":4,"unpackedSize":4513,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyf1Uj5VriaLxlRu54EMnalSIhYd7hl8aPhZqp+82bggIhAOxBb+nMQ0NR2veFklLNE01OAPNK++b1Crsm6jlZbu5U"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkVKXLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5bQ/+ILo4qPfzRxMnzTg6bfq7yPaQibyHhDIcHyAubBCIkkVjco7O\r\npho986XoqRvRt9CXchRnDO8xGwjHZvAC1IvMpzu/dUqMZCQ2DeRX/lLGnSr+\r\nvyglTrB7rg5DIxf6ITPg9vPO+/SJfxVy9yOkWMOV69k44YRFEPY4MZGrmzQs\r\nqzhDzWr8VMPbqoEIBgzaJ/tTOvHe0t9LRR/c5Vm/scuD3AtC3F6Or2rk8HSZ\r\nwuAr2NSYeih2aVqXE+kpK6x2uEI+7GmaLK42jAsds83FD6K/raraDahm0y68\r\nKO4XOXIHwtQbm0fV/SitHcjGqyb90sC2QQEBlDTRmFDxSVUHsc/eTQsNF+90\r\nwFPk/pRkUJOtC/a16ecKm9XEvflLxKL/WkqnV+bHpz3soYxmfRdq+7QjoaVg\r\naJR0GyztqquBChDKdIipfXaKRTqisNCQDaV5Ya8gdf1piHnaKRuc0mgjh2tO\r\ns7EzKsfMZ9dPPFk2IOrcXt7BVMoijUCVm2gDW4bdy3pRPSI6pvCZyzIfXQRg\r\n5Dlysac6C+PCbZJjvLONqyPOuLGQ8xfm/DHV8BDD731IHkBSwMYY9olI/hWf\r\n4+U8n9XaMEigzEkNJpU1SnhxvMpQ9072NkNYASm9+0uUUxsaI/nFSVnvYifc\r\nVpeB+3z8zsmOXHPJC5MXfDyCD8vSGkxy25s=\r\n=8WN2\r\n-----END PGP SIGNATURE-----\r\n","size":2156,"noattachment":false,"key":"/detective-stylus/-/detective-stylus-4.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_4.0.0_1683269066941_0.9746538918291063"},"_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":1683269067094,"_cnpm_publish_time":1683269067094,"dist-tags":{"latest":"6.0.0"}}