{"name":"sass-lookup","version":"2.0.0","keywords":["sass","lookup","dependency","import","resolution"],"author":{"url":"http://www.mrjoelkemp.com/","name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","_id":"sass-lookup@2.0.0","maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"}],"homepage":"https://github.com/mrjoelkemp/node-sass-lookup","bugs":{"url":"https://github.com/mrjoelkemp/node-sass-lookup/issues"},"bin":{"sass-lookup":"bin/cli.js"},"dist":{"shasum":"f2e11af381f0bd33ba0b0fde6b4924a474e58a76","tarball":"http://registry-npm.ywwl.com/sass-lookup/download/sass-lookup-2.0.0.tgz","fileCount":6,"integrity":"sha512-DZEg7g605XNZX3rxQMkndPmlSzaGR3ld33Rvx3XPTxP8hXBPErmCTrL2CPItzjCJqvjgt9kXhxQrzkbdJZToaA==","signatures":[{"sig":"MEUCIQCfcfX8SAcvvQ5oW/OQ9vraGU0vz86/9LeF/FfVRasHDQIgL7+rbN3XGkgGVpPUsMv4HhRlIHrOx/mjqw+Pcd0Bab4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8319,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbRJQJCRA9TVsSAnZWagAAYrIP/jcVSe3A7YVrkO0tI+UV\nx9l5aYq50EHUjFm/r/mIc7hw2yW5BWQW3DNG6AgbqUkS1+6FbYJpbYQbku7Q\nnitvB5hSwYYwT/f6/53TYD3xwzexLG96VcHP9a9M+L1QScvfWRFE6LZRFoFK\n4pvuJjUnaOHeVeqwGuPSjoxiiLb0ifikQItLvBSLGw968yw/7MHtW4zUDpTF\n22sQ2y5BtQP/y0L875GbgEeJ2Bzi5Z1dnUpYRa28r0z6wgOUZV+tCd5xzyTm\n8TXfZvkuTjTaBCbVS4GEck+JZBE5P4tPdOM9SWLnQkHZvqlpMvt8nVVF4GPw\nmoZ3DVWFeUq5BoEoJyCy/q6FSW21f5t1Dboc9iIHgizVCoofAm649DuU18Oa\nu8BCj9uOqm2rPBWJXrRWlzBr6VuUeS8stnjMRTjZX9cFSndSBB+KfPW5EDWc\ncGFn03h5Zm6cCWL+Pp0THChkKqOtlkdz/iSJ4Q8D7x8zWg4+Q/FWs+KNWF7W\nFKzTYbAHN8pV1+oQ/E2VUUF2DDVZt8VGtjITD79LVT8qDzxLc4OG1DwKG8lI\nnEcGB5JJDN/X403L4dwyS4tL44QJQgvA3i1ezE6Mpj6uKBmxpFfDXF2JVDWD\nG1hsT/tazNGDr5f+ktq1EWXthzeJ1d6hQxI5FbME5b+1IJe9nAjJP9CDu0k1\nK3ix\r\n=gn5D\r\n-----END PGP SIGNATURE-----\r\n","size":2670,"noattachment":false,"key":"/sass-lookup/-/sass-lookup-2.0.0.tgz"},"main":"index.js","engines":{"node":">=4.0.0"},"gitHead":"0f2aad502117dae151d528dc3aa93cd7d0f56287","scripts":{"test":"jscs -p airbnb test index.js bin && mocha"},"_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"repository":{"url":"git+https://github.com/mrjoelkemp/node-sass-lookup.git","type":"git"},"_npmVersion":"5.5.1","description":"Get the file associated with a Sass import","directories":{"test":"test"},"_nodeVersion":"8.9.3","dependencies":{"commander":"^2.16.0"},"_hasShrinkwrap":false,"devDependencies":{"jscs":"~1.13.1","mocha":"^5.2.0","mock-fs":"^4.5.0"},"_npmOperationalInternal":{"tmp":"tmp/sass-lookup_2.0.0_1531221001390_0.31726341676533365","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":1531221001504,"_cnpm_publish_time":1531221001504,"dist-tags":{"latest":"7.0.0"}}