{"name":"detective-scss","version":"5.0.1","description":"Find the dependencies of an scss file","main":"index.js","scripts":{"lint":"xo","fix":"xo --fix","uvu":"uvu test -i fixtures","test":"npm run lint && npm run uvu","test:ci":"c8 npm run uvu"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-detective-scss.git"},"keywords":["detective","scss","sass","ast","dependencies"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-detective-scss/issues"},"homepage":"https://github.com/dependents/node-detective-scss","engines":{"node":">=18"},"dependencies":{"gonzales-pe":"^4.3.0","node-source-walk":"^7.0.1"},"devDependencies":{"c8":"^10.1.3","uvu":"^0.5.6","xo":"^0.60.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-scss@5.0.1","gitHead":"68283fd9f3af665c365f89ce7ef4cce0454f83ad","_nodeVersion":"20.18.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-MAyPYRgS6DCiS6n6AoSBJXLGVOydsr9huwXORUlJ37K3YLyiN0vYHpzs3AdJOgHobBfispokoqrEon9rbmKacg==","shasum":"6a7f792dc9c0e8cfc0d252a50ba26a6df12596a7","tarball":"http://registry-npm.ywwl.com/detective-scss/download/detective-scss-5.0.1.tgz","fileCount":4,"unpackedSize":6475,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDMZEK3tax9jaP5h2OHf6X7QHBjPnnC5r7/XVHxxQbL+gIhAJLpS2fSvMKJy3JkCHpSQYRcA05MLOiGlmMqyoQFnXOw"}],"size":2839,"noattachment":false,"key":"/detective-scss/-/detective-scss-5.0.1.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/detective-scss_5.0.1_1738415745374_0.19676053422500495"},"_hasShrinkwrap":false,"readme":"# detective-scss\n\n[![CI](https://img.shields.io/github/actions/workflow/status/dependents/node-detective-scss/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/node-detective-scss/actions/workflows/ci.yml?query=branch%3Amain)\n[![npm version](https://img.shields.io/npm/v/detective-scss?logo=npm&logoColor=fff)](https://www.npmjs.com/package/detective-scss)\n[![npm downloads](https://img.shields.io/npm/dm/detective-scss)](https://www.npmjs.com/package/detective-scss)\n\n> Find the dependencies of an scss file\n\n```sh\nnpm install detective-scss\n```\n\n**Note:** This is specific to the .scss style syntax of the Sass preprocessor. For Sass support, please see [node-detective-sass](https://github.com/dependents/node-detective-sass).\n\nIt's the SASS counterpart to [detective](https://github.com/substack/node-detective), [detective-amd](https://github.com/dependents/node-detective-amd), and [detective-es6](https://github.com/dependents/node-detective-es6).\n\n* The AST is generated using the [gonzales-pe](https://github.com/tonyganch/gonzales-pe) parser.\n\n## Usage\n\n```js\nconst fs = require('fs');\nconst detective = require('detective-scss');\n\nconst content = fs.readFileSync('styles.scss', 'utf8');\n\n// list of imported file names (ex: '_foo.scss', '_foo', etc)\nconst dependencies = detective(content);\n\n// or to also detect any url() references to images, fonts, etc.\nconst allDependencies = detective(content, { url: true });\n```\n\n### Options\n\n* `url` (optional): (`Boolean`) also detect any `url()` references to images, fonts, etc.\n\n## Related\n\n* [node-sass-lookup](https://github.com/dependents/node-sass-lookup) if you want to map a sass/scss dependency to a file on your filesystem.\n* [node-precinct](https://github.com/dependents/node-precinct) if you want to also support finding dependencies for JavaScript and other languages.\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1738415745530,"maintainers":[{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"mrjoelkemp","email":"mrjoelkemp@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_cnpm_publish_time":1738415745530,"dist-tags":{"latest":"6.0.1"}}