{"name":"detective-sass","version":"7.0.0","keywords":["detective","sass","ast","dependencies"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","_id":"detective-sass@7.0.0","maintainers":[{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"mrjoelkemp","email":"mrjoelkemp@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"homepage":"https://github.com/dependents/node-detective-sass","bugs":{"url":"https://github.com/dependents/node-detective-sass/issues"},"dist":{"shasum":"b0bd1b5814abb68ed1b4d9e825eadab4ebd5ea87","tarball":"http://registry-npm.ywwl.com/detective-sass/download/detective-sass-7.0.0.tgz","fileCount":4,"integrity":"sha512-4GeLrzGrvXbkKIl3SU2Hnp0NWbGyUy7sppdxJ0OPPDvigmwvLy3IQy2MLuFSnQw9nwQDuIOlKmk0VlwpaIIoKw==","signatures":[{"sig":"MEYCIQCfKIz2iweVj5bMcjFavR0Vph8eScCHRYvjozBLSvVQDwIhANgbMxcDLpP3FjFwNrDwiUABl63nV6iHxjEl9bVPoSdF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5841,"size":2653,"noattachment":false,"key":"/detective-sass/-/detective-sass-7.0.0.tgz"},"type":"module","engines":{"node":">=20.19.0 || >=22.12.0"},"exports":{".":"./index.js"},"gitHead":"e97b5849f388a9c47ffb54ba1bc1b5aec985bb58","scripts":{"fix":"xo --fix","uvu":"uvu test -i fixtures","lint":"xo","test":"npm run lint && npm run uvu","test:ci":"c8 npm run uvu"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"repository":{"url":"git+https://github.com/dependents/node-detective-sass.git","type":"git"},"_npmVersion":"11.12.1","description":"Find the dependencies of a sass file","directories":{},"_nodeVersion":"24.15.0","dependencies":{"gonzales-pe":"^4.3.0","node-source-walk":"^8.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^11.0.0","xo":"^2.0.2","uvu":"^0.5.6"},"_npmOperationalInternal":{"tmp":"tmp/detective-sass_7.0.0_1779199009457_0.3711788075637048","host":"s3://npm-registry-packages-npm-production"},"readme":"# detective-sass\n\n[![CI](https://img.shields.io/github/actions/workflow/status/dependents/node-detective-sass/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/node-detective-sass/actions/workflows/ci.yml?query=branch%3Amain)\n[![npm version](https://img.shields.io/npm/v/detective-sass?logo=npm&logoColor=fff)](https://www.npmjs.com/package/detective-sass)\n[![npm downloads](https://img.shields.io/npm/dm/detective-sass)](https://www.npmjs.com/package/detective-sass)\n\n> Find the dependencies of a sass file\n\n```sh\nnpm install detective-sass\n```\n\n**Note:** This is specific to the .sass style syntax of the Sass preprocessor. For SCSS support, please see [node-detective-scss](https://github.com/dependents/node-detective-scss).\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### ESM\n\n```js\nimport fs from 'node:fs';\nimport detective from 'detective-sass';\n\nconst content = fs.readFileSync('styles.sass', 'utf8');\n\n// list of imported file names (ex: '_foo.sass', '_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### CommonJS\n\n```js\nconst { default: detective } = require('detective-sass');\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":1779199009633,"_cnpm_publish_time":1779199009633,"dist-tags":{"latest":"7.0.1"}}