{"name":"sass-lookup","version":"4.0.1","keywords":["sass","lookup","dependency","import","resolution"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","_id":"sass-lookup@4.0.1","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","max-nested-callbacks":["error",5],"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":"7bbcfc87ed3d4599e0fbd732b40957d525aff49a","tarball":"http://registry-npm.ywwl.com/sass-lookup/download/sass-lookup-4.0.1.tgz","fileCount":5,"integrity":"sha512-qhdS0fSsaqZmg2uIPOknIBmVgvkJAqn5iiTds+nvBMQJ4dCCvLzQwAOZauGa4ZD/CjFHGD3EkV8MObbXULXcVw==","signatures":[{"sig":"MEUCIHGRG/uoEJL0thy5Gd1Vd+k6Wt/o7TxyqemNcV510S2NAiEAuNYOJQ8mT4s6GA/bQa5F4XoT1QZpWyUFYuk2LDPkw0o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7405,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRsSyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqj9w/9FgZAsYyiHdfph+r3U2FtxUMU0fd12KNvHsTT1smCpaAOpOYA\r\ntCxJvVFGzh+C9bFfU/qoa5ehObf0hKpLYWgePAtsRhAeoTk1DBByAEVizDEZ\r\nThKooXE/q4xO/2BD08j+59c7xgYLuAzjwqcQPzuLB3XOj0SaFs5S+vZKxeVQ\r\nxkKzIPfQzWUJxQhIuGAFxmwK79gCGmhE8jwknW2MnAEtT4ZdrjkzP4HkbjS9\r\n1f99fclkg8G+q3W2hb7kAVeHzOQa8lVT4PDF4XmmOngERAiR7w0mnYNQQSdk\r\nRsIPAph6v4Ojs7aPOwecw5U5NQVuszX/rDxpHkSys1FBdw0u7+4jmhQgEN9v\r\nQEv9/ARpSkWdlr2VmXihK6Q1B3gWeeNEhUFEdV22UoAa1tqA3+WGDQsbacG4\r\n2lDA29MBpJ8xYiZ0XHuTwHjp1SCI7/h+me846cK3sxyP7G+fBXStkd4q93Oc\r\nUmzpZ5a/fElYyJB/wVUX6KPApNUG2vtyLh8gjx66PH3wO0RkLQPONdE2Oo6z\r\n506H6Okgqj2l2h3W/DwI16QCH6fK1ew6YceCPfon8NaEDBvGX4tYXT67wN1J\r\ndBEXuifPFh+hI10t5/HSJzhewcu+fBvLAxCZIpvoQIZJFGp9HaiFkzhbmt88\r\npJpLKFmyrcrmGpYO/6jQ9OiXkh6b/dOZZ1A=\r\n=2i5U\r\n-----END PGP SIGNATURE-----\r\n","size":3130,"noattachment":false,"key":"/sass-lookup/-/sass-lookup-4.0.1.tgz"},"main":"index.js","engines":{"node":">=12"},"gitHead":"93123aaffe9ffdc8c568ed8d10584f074d734ba1","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":"^9.5.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.13.0","xo":"^0.52.4","uvu":"^0.5.6","mock-fs":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sass-lookup_4.0.1_1682359474624_0.8183763266798612","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":1682359474868,"_cnpm_publish_time":1682359474868,"dist-tags":{"latest":"7.0.0"}}