{"name":"sass-lookup","version":"3.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@3.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":"3b395fa40569738ce857bc258e04df2617c48cac","tarball":"http://registry-npm.ywwl.com/sass-lookup/download/sass-lookup-3.0.0.tgz","fileCount":7,"integrity":"sha512-TTsus8CfFRn1N44bvdEai1no6PqdmDiQUiqW5DlpmtT+tYnIt1tXtDIph5KA1efC+LmioJXSnCtUVpcK9gaKIg==","signatures":[{"sig":"MEYCIQC92b/rCCV4L5+zpVsrlR5SwKmzbzH4oMpvYq6gKuO10gIhAPZ8yy7hGQDyiyJKw+jXyAlCs781ifi5kx/97hi5YvJ4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb8ZW2CRA9TVsSAnZWagAAsxMP/Rt7fmB4UtTLBaih3OAx\n+q8Z1aLpBddTg0jpyNKHK/J6U/kz8nNpVZlXbnCTyaJcKRrbrBIWXSIKAWcS\nuMIZGP68QKOU0Dh4HztOE3Lic6nupRBAbVkMmwQ1b3ftpe/2na6V6CExx7Nn\n3Txnm3o4IUDMpr9ii1rIHTO260FQjyhgF4ydHcRjEDJvKjxdCmq+wkNmroCe\nnPEpUXp6kVVWztuY8lQWRhnAxZ//LYbCWx6tczCR20V3gDgiwpQdrlQVQayw\nobSVnpKM1x6Z0avBPYPuBdv37mtnXWIGOqlCAlaTjRQ+hPbP0ssLIDHc4cxj\nvk8cH0M/QhOaTtiyEoMRCOojC3DjRDW3zPuSL9UquNhZz4eFjIHSVvKlbJ+2\n2knGuV3FpiA9e288gTJsR41j8VfZoIVXZkbjq5KW8xyW5hdZAgst/LvBmRz4\n8apSWLs/Ob1KbZRqt+Pjz4QwyW24MsUgzkDdlYIpTRnCZak19SZxedyHQejj\nM9jrn1tH3R/JPSwnBKDZFKY7e3sqBubX9H7+n469+buGh9PrqHvlwILekyQ8\nZrM8VH+n92dTeSaBm3ITFDWF3TktEf6zNxY4hYSCmF1LRpAJQpjdokHJ8/oR\nc6iTBjonlSCLce3GeqMK5NMBnWomyOZJizeic2zGXz3SmqogcE80IyFLT+jD\nMUlM\r\n=1RnU\r\n-----END PGP SIGNATURE-----\r\n","size":2912,"noattachment":false,"key":"/sass-lookup/-/sass-lookup-3.0.0.tgz"},"main":"index.js","engines":{"node":">=6.0.0"},"gitHead":"c665a6add0ebb8ec6a462d6194af1b32d48c2231","scripts":{"test":"jscs test/test.js index.js bin && ./node_modules/.bin/mocha test/test.js"},"_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"repository":{"url":"git+https://github.com/mrjoelkemp/node-sass-lookup.git","type":"git"},"_npmVersion":"6.4.1","description":"Get the file associated with a Sass import","directories":{"test":"test"},"_nodeVersion":"8.12.0","dependencies":{"commander":"^2.16.0"},"_hasShrinkwrap":false,"devDependencies":{"jscs":"^3.0.7","mocha":"^5.2.0","mock-fs":"^4.5.0","jscs-preset-mrjoelkemp":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sass-lookup_3.0.0_1542559158234_0.6942444212954977","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":1542559158356,"_cnpm_publish_time":1542559158356,"dist-tags":{"latest":"7.0.0"}}