{"name":"sass-lookup","version":"5.0.0","keywords":["sass","lookup","dependency","import","resolution"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","_id":"sass-lookup@5.0.0","maintainers":[{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"},{"name":"mrjoelkemp","email":"mrjoelkemp@gmail.com"}],"homepage":"https://github.com/dependents/node-sass-lookup","bugs":{"url":"https://github.com/dependents/node-sass-lookup/issues"},"xo":{"rules":{"curly":["error","multi-line"],"comma-dangle":["error","never"],"prefer-template":"error","arrow-body-style":"off","operator-linebreak":["error","after"],"capitalized-comments":"off","object-curly-spacing":["error","always"],"unicorn/prefer-module":"off","space-before-function-paren":["error","never"],"unicorn/prefer-node-protocol":"off","unicorn/prevent-abbreviations":"off","unicorn/prefer-top-level-await":"off"},"space":true,"ignores":["test/fixtures/*"]},"bin":{"sass-lookup":"bin/cli.js"},"dist":{"shasum":"3f1e2d613c718d158ce3b81f041a1a69e2af4e5d","tarball":"http://registry-npm.ywwl.com/sass-lookup/download/sass-lookup-5.0.0.tgz","fileCount":5,"integrity":"sha512-KxGbW/XLElvNfbJGdVrwD0eCDm/UBUtN8LddH7muAoUUvMZsqxrAXTWa5M0AUsS2oyYDZ8FWUGLAQyrPMg677g==","signatures":[{"sig":"MEQCIHhb85FYfhX9xipoB79GNC6I/xstLGgwomrm08FOG7hvAiAcUM6iib6/fqHH4GaWSjlnbdfXQ3Q5genXJdBjOTAbfg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7692,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkVJiDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrUAA//dpBRKwGyc29iybiCuCauFGap/BJVzz6gt/wrukupHXPmlxj2\r\nEndldjkNU1yyJG89wvTXJizOnZIL5x7Rm/d7Lm/XLlLpYOva+bAtYTKN75ho\r\nSWVgWL1REEpx69wVw/IC+swMMc4LNpFuvilJQNRUFwwGkSRxzmbleV2OXdVi\r\nyXlCoVHcZghL1C+xDdLOncmgVbBkFj8is3wW2YgmvZGbnKcztjwHDfh/O+Sc\r\npkq0DDkad/MMCumLTyL2SkyaN8b7/HqlCSIZ6iSlOFNKFEBG0VVzNaHoGEc8\r\nWXVzVfOcwM+H1gJ7MUTph0u50Gw9JXIN4ererj9Kcyuy49FdYo8/cyeHx1ZX\r\nxR1h/ypTw0XngvfIJAhT+FEsnvQ+F7uoaUVL5LwGGQ7e4oFTLlkCBEst/VXl\r\nUX58dYS1CcgKaO/HsC5wBG7/PKhpCGbLDfrXMLF9MGkun7JcjztsLSyg/Bj1\r\nIDdG1PeF5h7wVWVseuv5XWYPmEU7gzIs2VnhmOZvPCpJgYhMC2pts3zVlSf5\r\nXJfOd4kZciQmCYCmvEJh0jN3BZ7wc+nSq5o3yLOme/moY5lUUEx9fD2zYiJc\r\nCVN3Y/0UNRpVRJx6ldgKZweNGfw3Y7Wn5iPpQFD/PuFwLZ25Vt7FVIoDYrXE\r\ns8CL2bUYHc8OCjjgw+N60ycQ/bBYSAupbaw=\r\n=Gb6F\r\n-----END PGP SIGNATURE-----\r\n","size":3270,"noattachment":false,"key":"/sass-lookup/-/sass-lookup-5.0.0.tgz"},"main":"index.js","engines":{"node":">=14"},"gitHead":"c9a81caebedf87c46b7e7b4ba028a3752deb271f","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-sass-lookup.git","type":"git"},"_npmVersion":"9.5.1","description":"Get the file associated with a Sass import","directories":{},"_nodeVersion":"18.16.0","dependencies":{"commander":"^10.0.1"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.13.0","xo":"^0.54.2","uvu":"^0.5.6","mock-fs":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sass-lookup_5.0.0_1683265667648_0.009875215988855546","host":"s3://npm-registry-packages"},"readme":"# sass-lookup\n\n[![CI](https://img.shields.io/github/actions/workflow/status/dependents/node-sass-lookup/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/node-sass-lookup/actions/workflows/ci.yml?query=branch%3Amain)\n[![npm version](https://img.shields.io/npm/v/sass-lookup?logo=npm&logoColor=fff)](https://www.npmjs.com/package/sass-lookup)\n[![npm downloads](https://img.shields.io/npm/dm/sass-lookup)](https://www.npmjs.com/package/sass-lookup)\n\n> Get the file associated with a Sass import\n\nThis module replaces the Sass compiler's lookup algorithm for resolving a partial's path.\n\n* Handles underscored/non-underscored partials, partials with filenames, partials within subdirectories, partials with the `.scss` in the name, all of it.\n\n*Originally built for [Dependents](https://github.com/dependents/Dependents)*\n\n## Usage\n\n### ESM\n\n```js\nimport sassLookup from 'sass-lookup';\n\nsassLookup({\n  dependency: 'foo',\n  filename: 'path/to/filename',\n  directory: 'path/to/directory'\n})\n```\n\n### CommonJS\n\n```js\nconst { default: sassLookup } = require('sass-lookup');\n\nsassLookup({\n  dependency: 'foo',\n  filename: 'path/to/filename',\n  directory: 'path/to/directory'\n});\n```\n\n* `dependency`: The partial's name\n  * If your sass file had `@import \"foo\";`, then `\"foo\"` would be the dependency name\n* `filename`: The file importing the dependency\n* `directory`: The location(s) of all sass files\n  * A list of multiple directories is also supported for this argument.\n\nExample:\n\n```js\nimport sassLookup from 'sass-lookup';\n\nsassLookup({\n  dependency: 'variables',\n  filename: 'app/styles/styles.scss',\n  directory: 'app/styles'\n}); // yields app/styles/variables.scss\n```\n\n* This assumes that the file `app/styles/styles.scss` has `@import \"variables\";` and that all of the other sass files are located within `app/styles`.\n* Would yield `app/styles/_variables.scss` if the partial had an underscored filename.\n\n## CLI\n\nAssumes a global install of sass-lookup with `npm install -g sass-lookup`\n\n```sh\nsass-lookup [options] path/to/file\n```\n\nRun `sass-lookup --help` to see all the options.\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1683265667803,"_cnpm_publish_time":1683265667803,"dist-tags":{"latest":"7.0.0"}}