{"_id":"postcss-modules-resolve-imports","_rev":"10-8ab02d7b7cc3a617ce10d9078ab4d01c","name":"postcss-modules-resolve-imports","description":"Resolves ICSS imports","dist-tags":{"latest":"1.3.0","next":"1.3.0"},"versions":{"1.0.0":{"name":"postcss-modules-resolve-imports","version":"1.0.0","description":"Resolves ICSS imports","main":"index.js","scripts":{"test":"tape test/**/*.test.js && tape test/**/test.js"},"repository":{"type":"git","url":"git+https://github.com/sullenor/postcss-modules-resolve-imports.git"},"keywords":[],"author":{"name":"Alexey Litvinov"},"license":"MIT","bugs":{"url":"https://github.com/sullenor/postcss-modules-resolve-imports/issues"},"homepage":"https://github.com/sullenor/postcss-modules-resolve-imports#readme","eslintConfig":{"extends":"@sullenor/eslint-config/node"},"peerDependencies":{"postcss":">= 5"},"devDependencies":{"@sullenor/eslint-config":"^1.0.10","eslint":"^3.15.0","postcss":"^5.2.14","postcss-modules-extract-imports":"^1.0.1","postcss-modules-local-by-default":"^1.1.1","postcss-modules-scope":"^1.0.2","tape":"^4.6.3"},"gitHead":"c394131cbf2e359ae5e261cccd0b5b09de90849d","_id":"postcss-modules-resolve-imports@1.0.0","_shasum":"4356b29c0616fef3f020dd80144635ba63844cee","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.3.0","_npmUser":{"name":"sullenor","email":"iamhoneyboy@gmail.com"},"dist":{"shasum":"4356b29c0616fef3f020dd80144635ba63844cee","tarball":"https://registry.npmjs.org/postcss-modules-resolve-imports/-/postcss-modules-resolve-imports-1.0.0.tgz","integrity":"sha512-lMObU7lKzwWeTRC3ToxfqtxirbFqOgXQlPEVb1nJZ4fXwZ/8Bn4hOOZQFpyZUhgAVtc//Ow4b/jTKtva1sMKzA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBllU139c58XT0tFvowZYGyVXPmkfGB0ZrJNRHLLig+QIhAK44nUVqWSEaND94FpSv4MgKduIBhLFbd0c1o/O78oYc"}]},"maintainers":[{"name":"sullenor","email":"iamhoneyboy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-modules-resolve-imports-1.0.0.tgz_1488736811101_0.7166429928038269"},"directories":{}},"1.1.0":{"name":"postcss-modules-resolve-imports","version":"1.1.0","description":"Resolves ICSS imports","main":"index.js","engines":{"node":">= 6.3"},"scripts":{"fix":"eslint --fix {lib,test}/**/*.js *.js","test":"tape test/**/*.test.js && tape test/**/test.js"},"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-modules-resolve-imports.git"},"keywords":[],"author":{"name":"Alexey Litvinov"},"license":"MIT","bugs":{"url":"https://github.com/css-modules/postcss-modules-resolve-imports/issues"},"homepage":"https://github.com/css-modules/postcss-modules-resolve-imports#readme","eslintConfig":{"extends":"@sullenor/eslint-config/node"},"peerDependencies":{"postcss":">= 5"},"devDependencies":{"@sullenor/eslint-config":"^1.0.11","eslint":"^3","postcss":"^5.2.16","postcss-modules-extract-imports":"^1.0.1","postcss-modules-local-by-default":"^1.1.1","postcss-modules-scope":"^1.0.2","tape":"^4.6.3"},"dependencies":{"css-selector-tokenizer":"^0.7.0"},"gitHead":"a10a83b3cd84c82c782c00c6953f4f5047fbfd50","_id":"postcss-modules-resolve-imports@1.1.0","_shasum":"42ce259c99bc72ccd65e72fdd6786c3906e8ff12","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.3.0","_npmUser":{"name":"sullenor","email":"iamhoneyboy@gmail.com"},"dist":{"shasum":"42ce259c99bc72ccd65e72fdd6786c3906e8ff12","tarball":"https://registry.npmjs.org/postcss-modules-resolve-imports/-/postcss-modules-resolve-imports-1.1.0.tgz","integrity":"sha512-ESFXPAOAjLzvR8bKx45QiSICvf6ZgJBFwa90XCMZRI+DvMlgy+H75g915NTvC7dEw7Hlg4JPLFcg4G1u3HJXAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBeplO6GXaP6uqIZdc79Zn+ZTo6l1SvAgXT5qnn1gsJAAiBptV+THtEi2ZytMl1e/0tCAgssoLy/sca+GOPqRsCTIA=="}]},"maintainers":[{"name":"sullenor","email":"iamhoneyboy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/postcss-modules-resolve-imports-1.1.0.tgz_1489011643027_0.8923621820285916"},"directories":{}},"1.1.1":{"name":"postcss-modules-resolve-imports","version":"1.1.1","description":"Resolves ICSS imports","main":"index.js","engines":{"node":">= 6.3"},"scripts":{"fix":"eslint --fix {lib,test}/**/*.js *.js","test":"tape test/**/*.test.js && tape test/**/test.js"},"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-modules-resolve-imports.git"},"keywords":[],"author":{"name":"Alexey Litvinov"},"license":"MIT","bugs":{"url":"https://github.com/css-modules/postcss-modules-resolve-imports/issues"},"homepage":"https://github.com/css-modules/postcss-modules-resolve-imports#readme","eslintConfig":{"extends":"@sullenor/eslint-config/node"},"peerDependencies":{"postcss":">= 5"},"devDependencies":{"@sullenor/eslint-config":"^1.0.11","eslint":"^3","postcss":"^5.2.16","postcss-modules-extract-imports":"^1.0.1","postcss-modules-local-by-default":"^1.1.1","postcss-modules-scope":"^1.0.2","tape":"^4.6.3"},"dependencies":{"css-selector-tokenizer":"^0.7.0"},"gitHead":"761f6eb10ced20d2d8b3a062ba654b8826709403","_id":"postcss-modules-resolve-imports@1.1.1","_shasum":"7d230c47823ade06d572f3c1b145dd6ae7a2026e","_from":".","_npmVersion":"4.1.2","_nodeVersion":"6.10.0","_npmUser":{"name":"sullenor","email":"iamhoneyboy@gmail.com"},"dist":{"shasum":"7d230c47823ade06d572f3c1b145dd6ae7a2026e","tarball":"https://registry.npmjs.org/postcss-modules-resolve-imports/-/postcss-modules-resolve-imports-1.1.1.tgz","integrity":"sha512-DulGl0Sw5xZPHeMeVTTFr0ezTO3KDL+bsayZVFJ8DxNNYwZcvccefTypUHI4S2NB4V0sn7DlDsBCjbgy89utdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/mS358btPYtdTtirjSoy5xwtlwVA8FlotDK8ccHQc/AIhAJQH/r3RnPH/zutWlMg+12G6DGqWOPf/YWZAKnVfb7Hd"}]},"maintainers":[{"name":"sullenor","email":"iamhoneyboy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/postcss-modules-resolve-imports-1.1.1.tgz_1489860689722_0.9819025981705636"},"directories":{}},"1.1.2":{"name":"postcss-modules-resolve-imports","version":"1.1.2","description":"Resolves ICSS imports","main":"index.js","engines":{"node":">= 6.3"},"scripts":{"fix":"eslint --fix {lib,test}/**/*.js *.js","test":"tape test/**/*.test.js && tape test/**/test.js"},"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-modules-resolve-imports.git"},"keywords":[],"author":{"name":"Alexey Litvinov"},"license":"MIT","bugs":{"url":"https://github.com/css-modules/postcss-modules-resolve-imports/issues"},"homepage":"https://github.com/css-modules/postcss-modules-resolve-imports#readme","eslintConfig":{"extends":"@sullenor/eslint-config/node"},"peerDependencies":{"postcss":"^5.0.0"},"devDependencies":{"@sullenor/eslint-config":"^1.0.11","eslint":"^3","postcss":"^5.2.16","postcss-modules-extract-imports":"^1.0.1","postcss-modules-local-by-default":"^1.1.1","postcss-modules-scope":"^1.0.2","tape":"^4.6.3"},"dependencies":{"css-selector-tokenizer":"^0.7.0"},"gitHead":"d0727bab55edad6996d657fcb2f655f22da0f07c","_id":"postcss-modules-resolve-imports@1.1.2","_shasum":"a84f392cc712523c1e5e5194008f38580fb270ba","_from":".","_npmVersion":"4.1.2","_nodeVersion":"6.10.0","_npmUser":{"name":"sullenor","email":"iamhoneyboy@gmail.com"},"dist":{"shasum":"a84f392cc712523c1e5e5194008f38580fb270ba","tarball":"https://registry.npmjs.org/postcss-modules-resolve-imports/-/postcss-modules-resolve-imports-1.1.2.tgz","integrity":"sha512-imvjZ1Pms7Ob+5XaZZWJQzxlgi8FJ6tp7xUuaiyet4YEnD0oNSRyZQ4YQrdzAtO84jiVHIx9kxm6dPQso7CZQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHeYWgm+3uTa08apUUwGHG2TLtISh4o1nOM2nI1QRLLmAiEA4rJ0nzfawx0ept6PFvZUqPhSEeIt40yvvECtDm7pmaU="}]},"maintainers":[{"name":"sullenor","email":"iamhoneyboy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-modules-resolve-imports-1.1.2.tgz_1495384571798_0.8923607941251248"},"directories":{}},"1.2.0":{"name":"postcss-modules-resolve-imports","version":"1.2.0","description":"Resolves ICSS imports","main":"index.js","engines":{"node":">= 6.3"},"scripts":{"fix":"eslint --fix {lib,test}/**/*.js *.js","test":"tape test/**/*.test.js && tape test/**/test.js"},"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-modules-resolve-imports.git"},"keywords":[],"author":{"name":"Alexey Litvinov"},"license":"MIT","bugs":{"url":"https://github.com/css-modules/postcss-modules-resolve-imports/issues"},"homepage":"https://github.com/css-modules/postcss-modules-resolve-imports#readme","eslintConfig":{"extends":"@sullenor/eslint-config/node"},"peerDependencies":{"postcss":"^6.0.0"},"devDependencies":{"@sullenor/eslint-config":"^1.0.11","eslint":"^3","postcss":"^6.0.1","postcss-modules-extract-imports":"^1.1.0","postcss-modules-local-by-default":"^1.2.0","postcss-modules-scope":"^1.1.0","tape":"^4.6.3"},"dependencies":{"css-selector-tokenizer":"^0.7.0"},"gitHead":"71b670c7de4a6e2cd222eaf2ea738dfbab47b82b","_id":"postcss-modules-resolve-imports@1.2.0","_shasum":"3e39ad6e9f770c7f640061a7ec888053ce6846c8","_from":".","_npmVersion":"4.1.2","_nodeVersion":"6.10.0","_npmUser":{"name":"sullenor","email":"iamhoneyboy@gmail.com"},"dist":{"shasum":"3e39ad6e9f770c7f640061a7ec888053ce6846c8","tarball":"https://registry.npmjs.org/postcss-modules-resolve-imports/-/postcss-modules-resolve-imports-1.2.0.tgz","integrity":"sha512-yCKHUUYVaI5IuFaytn7UpoLfa2WAtoGaQmgGCM3khWKP9qsJt5LdvYj6eyqgKHD0d+V6J+mMSIoAgUC9rKnFUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsR4OKn8Y/4TWBpiMSlmyRXnNaju7+wk+8MbtMByjhUQIgF2JOYy0r1/XqsRcMfbuEnWnh3SA2O163DQvIUhHEIMI="}]},"maintainers":[{"name":"sullenor","email":"iamhoneyboy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-modules-resolve-imports-1.2.0.tgz_1495472001248_0.8103045716416091"},"directories":{}},"1.2.1":{"name":"postcss-modules-resolve-imports","version":"1.2.1","description":"Resolves ICSS imports","main":"index.js","engines":{"node":">= 6.3"},"scripts":{"fix":"eslint --fix {lib,test}/**/*.js *.js","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-modules-resolve-imports.git"},"keywords":[],"author":{"name":"Alexey Litvinov"},"license":"MIT","bugs":{"url":"https://github.com/css-modules/postcss-modules-resolve-imports/issues"},"homepage":"https://github.com/css-modules/postcss-modules-resolve-imports#readme","eslintConfig":{"env":{"jest":true},"extends":"@sullenor/eslint-config/node"},"peerDependencies":{"postcss":"^6.0.0"},"devDependencies":{"@sullenor/eslint-config":"^1.0.11","eslint":"^3","jest":"^20.0.3","postcss":"^6.0.1","postcss-icss-values":"2.0.1","postcss-modules-extract-imports":"^1.1.0","postcss-modules-local-by-default":"^1.2.0","postcss-modules-scope":"^1.1.0"},"dependencies":{"css-selector-tokenizer":"^0.7.0","icss-utils":"^3.0.1","minimist":"^1.2.0"},"gitHead":"be8dc77e642e0081e0015272e656a4dbaa9d4757","_id":"postcss-modules-resolve-imports@1.2.1","_shasum":"2ce0b61822eaf1041c4a2024537db65b0e444ba7","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.2.1","_npmUser":{"name":"sullenor","email":"iamhoneyboy@gmail.com"},"dist":{"shasum":"2ce0b61822eaf1041c4a2024537db65b0e444ba7","tarball":"https://registry.npmjs.org/postcss-modules-resolve-imports/-/postcss-modules-resolve-imports-1.2.1.tgz","integrity":"sha512-WXp9JRTTVzYswILoUTdZccYmLuqNqKmtBfD8UJ/WLIyGDJNK2Hwo9y4Q/X+vhJB88QqQskHiXi3mJ1sKHx5UBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIChCXuv0zybt/B2pamutAwnY5hN64rxQ2UIf2YvBT+52AiB4RN/MB9psiREjttEUOhcRgXSEV0YUxWT+tGzjhae1kw=="}]},"maintainers":[{"name":"sullenor","email":"iamhoneyboy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-modules-resolve-imports-1.2.1.tgz_1504585598463_0.880004595965147"},"directories":{}},"1.3.0":{"name":"postcss-modules-resolve-imports","version":"1.3.0","description":"Resolves ICSS imports","main":"index.js","engines":{"node":">= 4"},"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-modules-resolve-imports.git"},"keywords":[],"author":{"name":"Alexey Litvinov"},"license":"MIT","bugs":{"url":"https://github.com/css-modules/postcss-modules-resolve-imports/issues"},"homepage":"https://github.com/css-modules/postcss-modules-resolve-imports#readme","eslintConfig":{"env":{"jest":true},"extends":"@sullenor/eslint-config/node"},"peerDependencies":{"postcss":"^6.0.0"},"devDependencies":{"@sullenor/eslint-config":"^1.0.11","babel-preset-env":"^1.6.0","eslint":"^3","gulp":"^3.9.1","gulp-babel":"^7.0.0","gulp-debug":"^3.1.0","jest":"^20.0.3","postcss":"^6.0.1","postcss-icss-values":"2.0.1","postcss-modules-extract-imports":"^1.1.0","postcss-modules-local-by-default":"^1.2.0","postcss-modules-scope":"^1.1.0"},"dependencies":{"css-selector-tokenizer":"^0.7.0","icss-utils":"^3.0.1","minimist":"^1.2.0"},"scripts":{"fix":"eslint --fix {lib,test}/**/*.js *.js","prepublish":"npm run transpile","pretest":"npm run transpile","transpile":"gulp --cwd . --gulpfile scripts/gulpfile.js transpile","test":"jest"},"gitHead":"36be983eae125fcfb301b29d0d17b68fa6a5978c","_id":"postcss-modules-resolve-imports@1.3.0","_shasum":"398d3000b95ae969420cdf4cd83fa8067f1c5eae","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.2.1","_npmUser":{"name":"sullenor","email":"iamhoneyboy@gmail.com"},"dist":{"shasum":"398d3000b95ae969420cdf4cd83fa8067f1c5eae","tarball":"https://registry.npmjs.org/postcss-modules-resolve-imports/-/postcss-modules-resolve-imports-1.3.0.tgz","integrity":"sha512-9xECsLcuR1DRu7mVhK6GIkdEeg4sdZXbLEcuEkDh9mKiz+uxDBfDREYiVehINdW0UPF9gbHnb64ZQMuRsqqkDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFDLsjxRZahFiujp3S2ESHdNd5pXsNBzuCxhbEDT9q55AiBfgI2USD6CEXQ6RQXUXLBkQC+GthEqRr6n23w440xvPA=="}]},"maintainers":[{"name":"sullenor","email":"iamhoneyboy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-modules-resolve-imports-1.3.0.tgz_1505029268215_0.6684433612972498"},"directories":{}}},"readme":"CSS Modules: Resolve Imports\n============================\n\n\nTransforms:\n\n```css\n:import(\"library/button.css\") {\n  i__imported_button_0: button;\n}\n:export {\n  continueButton: _source_continueButton i__imported_button_0;\n}\n._source_continueButton {\n  color: green;\n}\n```\n\ninto:\n\n```css\n:export {\n  continueButton: _source_continueButton _button_button\n}\n._button_button {\n  /*common button styles*/\n}\n._source_continueButton {\n  color: green\n}\n```\n\n**Note**: should be used after [postcss-modules-extract-imports](https://github.com/css-modules/postcss-modules-extract-imports) and [postcss-modules-scope](https://github.com/css-modules/postcss-modules-scope).\n\nThe `postcss-moduels-resolve-imports` plugin also fixes `@import` and `url()` paths (which doesn't start from `/`) for the included modules from the different folders.\n\n\n## Options\n\n`icssExports` `boolean`\n\nAdds the `:export` declaration to the resulting css. In case you need the JavaScript object with tokens, you may obtain it by accessing the `lazyResult.root.exports` property. For example,\n\n```javascript\nconst lazyResult = postcss([...plugins]).process(cssString, {from: filepath});\nconst tokens = lazyResult.root.exports;\n```\n\n\n`resolve` `object`\n\nConfigure how modules should be resolved.\n\n\n`resolve.alias` `object`\n\nCreate an aliases for the modules paths. For example, create an alias for the *lib* directory with common modules:\n\n```javascript\nalias: {\n  lib: path.resolve(__dirname, 'lib'),\n},\n```\n\nNow, instead of using relative paths when composing:\n\n```css\n.button {\n  composes: normal from '../../lib/button.css';\n}\n```\n\nyou can use the alias:\n\n```css\n.button {\n  composes: normal from 'lib/button.css';\n}\n```\n\n\n`resolve.extensions` `array`\n\nAutomaticaly check files with the provided extensions.\n\n```javascript\n['.css']\n```\n\nAllows you to omit file extensions while using compose:\n\n```css\n.button {\n  composes: normal from '../lib/button';\n}\n```\n\n\n`resolve.modules` `array`\n\nProvide additional directories to check the modules in. Should be absolute paths only.\n\n```javascript\n[path.resolve(__dirname, 'lib')]\n```\n\n\n`resolve.mainFile` `string`\n\nSpecifies the default filename to be used while resolving directories. Default: `index.css`.\n\n\n`resolve.preserveSymlinks` `boolean`\n\nWether to resolve symlinks in paths. Defaults to nodejs behaviour: `false`, \n(parsed from `--preserve-symlinks` or environment variable `PRESERVE_SYMLINKS`).\n\n\n## Reference Guides\n\n- Interoperable CSS: https://github.com/css-modules/icss\n- NodeJS modules resolving mechanism: https://nodejs.org/dist/latest-v6.x/docs/api/modules.html#modules_all_together\n\n\n## License\n\n> The MIT License\n","maintainers":[{"email":"iamhoneyboy@gmail.com","name":"sullenor"},{"email":"sheo13666q@gmail.com","name":"evilebottnawi"}],"time":{"modified":"2022-06-24T10:26:06.600Z","created":"2017-03-05T18:00:13.113Z","1.0.0":"2017-03-05T18:00:13.113Z","1.1.0":"2017-03-08T22:20:43.634Z","1.1.1":"2017-03-18T18:11:30.334Z","1.1.2":"2017-05-21T16:36:12.686Z","1.2.0":"2017-05-22T16:53:22.295Z","1.2.1":"2017-09-05T04:26:39.400Z","1.3.0":"2017-09-10T07:41:09.420Z"},"homepage":"https://github.com/css-modules/postcss-modules-resolve-imports#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-modules-resolve-imports.git"},"author":{"name":"Alexey Litvinov"},"bugs":{"url":"https://github.com/css-modules/postcss-modules-resolve-imports/issues"},"license":"MIT","readmeFilename":"readme.md"}