{"_id":"icss-utils","_rev":"98753","name":"icss-utils","description":"ICSS utils for postcss ast","dist-tags":{"latest":"5.1.0","next":"5.0.0-rc.0"},"maintainers":[{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"geelen","email":""},{"name":"sullenor","email":"iamhoneyboy@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"time":{"modified":"2021-06-03T10:33:21.000Z","created":"2017-05-24T17:56:39.955Z","5.1.0":"2020-11-19T16:23:11.564Z","5.0.0":"2020-10-12T18:21:30.414Z","5.0.0-rc.0":"2020-09-22T10:00:21.592Z","4.1.1":"2019-05-29T15:05:55.307Z","4.1.0":"2019-02-26T11:04:12.493Z","4.0.0":"2018-11-01T10:17:55.040Z","3.0.1":"2017-06-14T23:05:31.065Z","3.0.0":"2017-06-14T22:58:59.931Z","2.1.0":"2017-05-26T20:01:42.433Z","2.0.0":"2017-05-24T17:56:39.955Z"},"users":{},"author":{"name":"Glen Maddern"},"repository":{"type":"git","url":"git+https://github.com/css-modules/icss-utils.git"},"versions":{"5.1.0":{"name":"icss-utils","version":"5.1.0","description":"ICSS utils for postcss ast","main":"src/index.js","engines":{"node":"^10 || ^12 || >= 14"},"scripts":{"prettier":"prettier -l --ignore-path .gitignore . \"!test/test-cases\"","eslint":"eslint --ignore-path .gitignore .","lint":"yarn eslint && yarn prettier","test:only":"jest","test:watch":"jest --watch","test:coverage":"jest --coverage --collectCoverageFrom=\"src/**/*\"","pretest":"yarn lint","test":"yarn test:coverage","prepublishOnly":"yarn test"},"repository":{"type":"git","url":"git+https://github.com/css-modules/icss-utils.git"},"keywords":["css","modules","icss","postcss"],"author":{"name":"Glen Maddern"},"license":"ISC","bugs":{"url":"https://github.com/css-modules/icss-utils/issues"},"homepage":"https://github.com/css-modules/icss-utils#readme","devDependencies":{"coveralls":"^3.1.0","eslint":"^7.9.0","eslint-config-prettier":"^6.12.0","husky":"^4.3.0","jest":"^26.4.2","lint-staged":"^10.4.0","postcss":"^8.1.0","prettier":"^2.1.2"},"peerDependencies":{"postcss":"^8.1.0"},"gitHead":"913a175f0cc2d70fad80b6190e9dce122454a0e0","_id":"icss-utils@5.1.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"shasum":"c6be6858abd013d768e98366ae47e25d5887b1ae","size":4025,"noattachment":false,"key":"/icss-utils/-/icss-utils-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-utils/download/icss-utils-5.1.0.tgz"},"_npmUser":{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},"directories":{},"maintainers":[{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"geelen","email":""},{"name":"sullenor","email":"iamhoneyboy@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/icss-utils_5.1.0_1605802991413_0.10222344968309405"},"_hasShrinkwrap":false,"publish_time":1605802991564,"_cnpm_publish_time":1605802991564},"5.0.0":{"name":"icss-utils","version":"5.0.0","description":"ICSS utils for postcss ast","main":"src/index.js","engines":{"node":"^10 || ^12 || >= 14"},"scripts":{"prettier":"prettier -l --ignore-path .gitignore . \"!test/test-cases\"","eslint":"eslint --ignore-path .gitignore .","lint":"yarn eslint && yarn prettier","test:only":"jest","test:watch":"jest --watch","test:coverage":"jest --coverage --collectCoverageFrom=\"src/**/*\"","pretest":"yarn lint","test":"yarn test:coverage","prepublishOnly":"yarn test"},"repository":{"type":"git","url":"git+https://github.com/css-modules/icss-utils.git"},"keywords":["css","modules","icss","postcss"],"author":{"name":"Glen Maddern"},"license":"ISC","bugs":{"url":"https://github.com/css-modules/icss-utils/issues"},"homepage":"https://github.com/css-modules/icss-utils#readme","devDependencies":{"coveralls":"^3.1.0","eslint":"^7.9.0","eslint-config-prettier":"^6.12.0","husky":"^4.3.0","jest":"^26.4.2","lint-staged":"^10.4.0","postcss":"^8.1.0","prettier":"^2.1.2"},"peerDependencies":{"postcss":"^8.1.0"},"gitHead":"329fbaad0040c3b1aa3bcbfcf65c326aa531da38","_id":"icss-utils@5.0.0","_nodeVersion":"10.15.2","_npmVersion":"6.14.8","dist":{"shasum":"03ed56c3accd32f9caaf1752ebf64ef12347bb84","size":3586,"noattachment":false,"key":"/icss-utils/-/icss-utils-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-utils/download/icss-utils-5.0.0.tgz"},"maintainers":[{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"geelen","email":""},{"name":"sullenor","email":"iamhoneyboy@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmUser":{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/icss-utils_5.0.0_1602526890287_0.47248083882242353"},"_hasShrinkwrap":false,"publish_time":1602526890414,"_cnpm_publish_time":1602526890414},"5.0.0-rc.0":{"name":"icss-utils","version":"5.0.0-rc.0","description":"ICSS utils for postcss ast","main":"src/index.js","engines":{"node":">= 10.13.0 || >= 12.13.0 || >= 14"},"scripts":{"prettier":"prettier -l --ignore-path .gitignore . \"!test/test-cases\"","eslint":"eslint --ignore-path .gitignore .","lint":"yarn eslint && yarn prettier","pretest":"yarn lint","test":"jest --coverage","test:only":"jest","autotest":"jest --coverage --watch","cover":"jest --coverage","ci":"yarn pretest && yarn cover","prepublishOnly":"yarn test"},"repository":{"type":"git","url":"git+https://github.com/css-modules/icss-utils.git"},"keywords":["css","modules","icss","postcss"],"author":{"name":"Glen Maddern"},"license":"ISC","bugs":{"url":"https://github.com/css-modules/icss-utils/issues"},"homepage":"https://github.com/css-modules/icss-utils#readme","devDependencies":{"eslint":"^7.9.0","husky":"^4.3.0","jest":"^26.4.2","lint-staged":"^10.4.0","postcss":"^8.0.6","prettier":"^2.1.2"},"peerDependencies":{"postcss":"^8.0.0"},"readmeFilename":"README.md","gitHead":"b39a59647569efd7bfb4c66d3098cadb887da33b","_id":"icss-utils@5.0.0-rc.0","_nodeVersion":"10.15.2","_npmVersion":"6.14.8","dist":{"shasum":"c72082bd0edaa2cd85b25bfe98db2e49be8d4306","size":3513,"noattachment":false,"key":"/icss-utils/-/icss-utils-5.0.0-rc.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-utils/download/icss-utils-5.0.0-rc.0.tgz"},"maintainers":[{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"geelen","email":""},{"name":"sullenor","email":"iamhoneyboy@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmUser":{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/icss-utils_5.0.0-rc.0_1600768821398_0.6837232211656088"},"_hasShrinkwrap":false,"publish_time":1600768821592,"_cnpm_publish_time":1600768821592},"4.1.1":{"name":"icss-utils","version":"4.1.1","description":"ICSS utils for postcss ast","main":"lib/index.js","engines":{"node":">= 6"},"scripts":{"lint":"eslint . --ignore-path .gitignore","build":"babel --out-dir lib src","pretest":"npm run lint","test":"npm run test:only","test:only":"jest","prepublish":"yarn test && yarn run build"},"babel":{"presets":[["@babel/preset-env",{"targets":{"node":6}}]]},"eslintConfig":{"parser":"babel-eslint","parserOptions":{"sourceType":"module"},"env":{"es6":true,"jest":true},"extends":"eslint:recommended"},"lint-staged":{"*.js":["prettier --write","eslint","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"repository":{"type":"git","url":"git+https://github.com/css-modules/icss-utils.git"},"keywords":["css","modules","icss","postcss"],"author":{"name":"Glen Maddern"},"license":"ISC","bugs":{"url":"https://github.com/css-modules/icss-utils/issues"},"homepage":"https://github.com/css-modules/icss-utils#readme","dependencies":{"postcss":"^7.0.14"},"devDependencies":{"@babel/cli":"^7.1.0","@babel/core":"^7.1.0","@babel/preset-env":"^7.1.0","babel-eslint":"^10.0.1","babel-jest":"^24.1.0","eslint":"^5.14.1","husky":"^1.3.1","jest":"^24.1.0","lint-staged":"^8.1.4","prettier":"^1.16.4"},"gitHead":"f3ae4d5193d5ac7a3fb5a469e9cc198d75f520b4","_id":"icss-utils@4.1.1","_nodeVersion":"10.15.2","_npmVersion":"6.9.0","dist":{"shasum":"21170b53789ee27447c2f47dd683081403f9a467","size":3461,"noattachment":false,"key":"/icss-utils/-/icss-utils-4.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-utils/download/icss-utils-4.1.1.tgz"},"maintainers":[{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"geelen","email":""},{"name":"sullenor","email":"iamhoneyboy@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmUser":{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/icss-utils_4.1.1_1559142355157_0.15676088525841547"},"_hasShrinkwrap":false,"publish_time":1559142355307,"_cnpm_publish_time":1559142355307},"4.1.0":{"name":"icss-utils","version":"4.1.0","description":"ICSS utils for postcss ast","main":"lib/index.js","engines":{"node":">= 6"},"scripts":{"lint":"eslint . --ignore-path .gitignore","build":"babel --out-dir lib src","pretest":"npm run lint","test":"npm run test:only","test:only":"jest","prepublish":"yarn test && yarn run build"},"babel":{"presets":[["@babel/preset-env",{"targets":{"node":6}}]]},"eslintConfig":{"parser":"babel-eslint","parserOptions":{"sourceType":"module"},"env":{"es6":true,"jest":true},"extends":"eslint:recommended"},"lint-staged":{"*.js":["prettier --write","eslint","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"repository":{"type":"git","url":"git+https://github.com/css-modules/icss-utils.git"},"keywords":["css","modules","icss","postcss"],"author":{"name":"Glen Maddern"},"license":"ISC","bugs":{"url":"https://github.com/css-modules/icss-utils/issues"},"homepage":"https://github.com/css-modules/icss-utils#readme","dependencies":{"postcss":"^7.0.14"},"devDependencies":{"@babel/cli":"^7.1.0","@babel/core":"^7.1.0","@babel/preset-env":"^7.1.0","babel-eslint":"^10.0.1","babel-jest":"^24.1.0","eslint":"^5.14.1","husky":"^1.3.1","jest":"^24.1.0","lint-staged":"^8.1.4","prettier":"^1.16.4"},"gitHead":"98d6b26e5f5fab4e73580821134d5a85bbf80132","_id":"icss-utils@4.1.0","_nodeVersion":"10.15.0","_npmVersion":"6.8.0","dist":{"shasum":"339dbbffb9f8729a243b701e1c29d4cc58c52f0e","size":3472,"noattachment":false,"key":"/icss-utils/-/icss-utils-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-utils/download/icss-utils-4.1.0.tgz"},"maintainers":[{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"geelen","email":""},{"name":"sullenor","email":"iamhoneyboy@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmUser":{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/icss-utils_4.1.0_1551179052279_0.023139990835310043"},"_hasShrinkwrap":false,"publish_time":1551179052493,"_cnpm_publish_time":1551179052493},"4.0.0":{"name":"icss-utils","version":"4.0.0","description":"ICSS utils for postcss ast","main":"lib/index.js","engines":{"node":">= 6"},"scripts":{"build":"babel --out-dir lib src","test":"jest --coverage","precommit":"lint-staged","prepublish":"yarn test && yarn run build"},"lint-staged":{"*.js":["prettier --write","eslint","git add"]},"eslintConfig":{"parserOptions":{"sourceType":"module"},"env":{"es6":true},"extends":"eslint:recommended"},"babel":{"presets":[["env",{"targets":{"node":6}}]]},"repository":{"type":"git","url":"git+https://github.com/css-modules/icss-utils.git"},"keywords":["css","modules","icss","postcss"],"author":{"name":"Glen Maddern"},"license":"ISC","bugs":{"url":"https://github.com/css-modules/icss-utils/issues"},"homepage":"https://github.com/css-modules/icss-utils#readme","dependencies":{"postcss":"^7.0.5"},"devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-preset-env":"^1.5.2","eslint":"^4.0.0","husky":"^0.13.4","jest":"^20.0.4","lint-staged":"^3.6.1","prettier":"^1.4.4"},"gitHead":"2bfed2e97ee5409a6c0c0a36b298a078b11988e8","_id":"icss-utils@4.0.0","_npmVersion":"5.10.0","_nodeVersion":"10.8.0","_npmUser":{"name":"sullenor","email":"iamhoneyboy@gmail.com"},"dist":{"shasum":"d52cf4bcdcfa1c45c2dbefb4ffdf6b00ef608098","size":3306,"noattachment":false,"key":"/icss-utils/-/icss-utils-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-utils/download/icss-utils-4.0.0.tgz"},"maintainers":[{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"geelen","email":""},{"name":"sullenor","email":"iamhoneyboy@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/icss-utils_4.0.0_1541067474885_0.42543968656867515"},"_hasShrinkwrap":false,"publish_time":1541067475040,"_cnpm_publish_time":1541067475040},"3.0.1":{"name":"icss-utils","version":"3.0.1","description":"ICSS utils for postcss ast","main":"lib/index.js","files":["lib"],"scripts":{"build":"babel --out-dir lib src","test":"jest --coverage","precommit":"lint-staged","prepublish":"yarn test && yarn run build"},"lint-staged":{"*.js":["prettier --write","eslint","git add"]},"eslintConfig":{"parserOptions":{"sourceType":"module"},"env":{"es6":true},"extends":"eslint:recommended"},"babel":{"presets":[["env",{"targets":{"node":4}}]]},"repository":{"type":"git","url":"git+https://github.com/css-modules/icss-utils.git"},"keywords":["css","modules","icss","postcss"],"author":{"name":"Glen Maddern"},"license":"ISC","bugs":{"url":"https://github.com/css-modules/icss-utils/issues"},"homepage":"https://github.com/css-modules/icss-utils#readme","dependencies":{"postcss":"^6.0.2"},"devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-preset-env":"^1.5.2","eslint":"^4.0.0","husky":"^0.13.4","jest":"^20.0.4","lint-staged":"^3.6.1","prettier":"^1.4.4"},"gitHead":"911bfc659edc628748f89cf26d6dd377908b0648","_id":"icss-utils@3.0.1","_shasum":"ee70d3ae8cac38c6be5ed91e851b27eed343ad0f","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.3.1","_npmUser":{"name":"trysound","email":"trysound@yandex.ru"},"dist":{"shasum":"ee70d3ae8cac38c6be5ed91e851b27eed343ad0f","size":2980,"noattachment":false,"key":"/icss-utils/-/icss-utils-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-utils/download/icss-utils-3.0.1.tgz"},"maintainers":[{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"geelen","email":""},{"name":"sullenor","email":"iamhoneyboy@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/icss-utils-3.0.1.tgz_1497481530059_0.816394830821082"},"directories":{},"publish_time":1497481531065,"_hasShrinkwrap":false,"_cnpm_publish_time":1497481531065},"3.0.0":{"name":"icss-utils","version":"3.0.0","description":"ICSS utils for postcss ast","main":"lib/index.js","files":["lib"],"scripts":{"build":"babel --out-dir lib src","test":"jest --coverage","precommit":"lint-staged","prepublish":"yarn test && yarn run build"},"lint-staged":{"*.js":["prettier --write","eslint","git add"]},"eslintConfig":{"parserOptions":{"sourceType":"module"},"env":{"es6":true},"extends":"eslint:recommended"},"babel":{"presets":[["env",{"targets":{"node":4}}]]},"repository":{"type":"git","url":"git+https://github.com/css-modules/icss-utils.git"},"keywords":["css","modules","icss","postcss"],"author":{"name":"Glen Maddern"},"license":"ISC","bugs":{"url":"https://github.com/css-modules/icss-utils/issues"},"homepage":"https://github.com/css-modules/icss-utils#readme","dependencies":{"postcss":"^6.0.2"},"devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-preset-env":"^1.5.2","eslint":"^4.0.0","husky":"^0.13.4","jest":"^20.0.4","lint-staged":"^3.6.1","prettier":"^1.4.4"},"gitHead":"f40da139f86e8514a6a58230437f1da71f5f5084","_id":"icss-utils@3.0.0","_shasum":"6538fc5f3845567477dd7e898a403ea22d6af459","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.3.1","_npmUser":{"name":"trysound","email":"trysound@yandex.ru"},"dist":{"shasum":"6538fc5f3845567477dd7e898a403ea22d6af459","size":2995,"noattachment":false,"key":"/icss-utils/-/icss-utils-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-utils/download/icss-utils-3.0.0.tgz"},"maintainers":[{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"geelen","email":""},{"name":"sullenor","email":"iamhoneyboy@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/icss-utils-3.0.0.tgz_1497481139017_0.6673620764631778"},"directories":{},"publish_time":1497481139931,"_hasShrinkwrap":false,"_cnpm_publish_time":1497481139931},"2.1.0":{"name":"icss-utils","version":"2.1.0","description":"ICSS utils for postcss ast","main":"lib/index.js","files":["lib"],"scripts":{"build":"babel --out-dir lib src","test":"jest --coverage","precommit":"lint-staged","prepublish":"yarn test && yarn run build"},"lint-staged":{"*.js":["eslint","prettier --write","git add"]},"eslintConfig":{"parserOptions":{"ecmaVersion":6,"sourceType":"module"},"extends":"eslint:recommended"},"babel":{"presets":[["env",{"targets":{"node":4}}]]},"repository":{"type":"git","url":"git+https://github.com/css-modules/icss-utils.git"},"keywords":["css","modules","icss","postcss"],"author":{"name":"Glen Maddern"},"license":"ISC","bugs":{"url":"https://github.com/css-modules/icss-utils/issues"},"homepage":"https://github.com/css-modules/icss-utils#readme","dependencies":{"postcss":"^6.0.1"},"devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-preset-env":"^1.5.1","eslint":"^3.19.0","husky":"^0.13.3","jest":"^20.0.3","lint-staged":"^3.4.2","prettier":"^1.3.1"},"gitHead":"3442cc3ba047d67035ab7129e0da01a6247718f0","_id":"icss-utils@2.1.0","_shasum":"83f0a0ec378bf3246178b6c2ad9136f135b1c962","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.3.1","_npmUser":{"name":"trysound","email":"trysound@yandex.ru"},"dist":{"shasum":"83f0a0ec378bf3246178b6c2ad9136f135b1c962","size":2947,"noattachment":false,"key":"/icss-utils/-/icss-utils-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-utils/download/icss-utils-2.1.0.tgz"},"maintainers":[{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"geelen","email":""},{"name":"sullenor","email":"iamhoneyboy@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/icss-utils-2.1.0.tgz_1495828901533_0.18073372449725866"},"directories":{},"publish_time":1495828902433,"_cnpm_publish_time":1495828902433,"_hasShrinkwrap":false},"2.0.0":{"name":"icss-utils","version":"2.0.0","description":"ICSS utils for postcss ast","main":"lib/index.js","files":["lib"],"scripts":{"build":"babel --out-dir lib src","test":"jest --coverage","precommit":"lint-staged","prepublish":"yarn run test && yarn run build"},"lint-staged":{"*.js":["prettier --single-quote --no-semi --write","git add"]},"babel":{"presets":[["env",{"targets":{"node":4}}]]},"repository":{"type":"git","url":"git+https://github.com/css-modules/icss-replace-symbols.git"},"keywords":["css","modules","icss","postcss"],"author":{"name":"Glen Maddern"},"license":"ISC","bugs":{"url":"https://github.com/css-modules/icss-replace-symbols/issues"},"homepage":"https://github.com/css-modules/icss-replace-symbols#readme","dependencies":{"postcss":"^6.0.1"},"devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-preset-env":"^1.5.1","husky":"^0.13.3","jest":"^20.0.3","lint-staged":"^3.4.2","prettier":"^1.3.1"},"gitHead":"6e45ef34241a657034c08165f2d8b5fb3954a0d2","_id":"icss-utils@2.0.0","_shasum":"9eb8432af871adc003e4ac7a574d24169398317d","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.3.1","_npmUser":{"name":"trysound","email":"trysound@yandex.ru"},"dist":{"shasum":"9eb8432af871adc003e4ac7a574d24169398317d","size":2835,"noattachment":false,"key":"/icss-utils/-/icss-utils-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-utils/download/icss-utils-2.0.0.tgz"},"maintainers":[{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"geelen","email":""},{"name":"sullenor","email":"iamhoneyboy@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/icss-utils-2.0.0.tgz_1495648598480_0.550774097442627"},"directories":{},"publish_time":1495648599955,"_hasShrinkwrap":false,"_cnpm_publish_time":1495648599955}},"readme":"[![Build Status](https://travis-ci.org/css-modules/icss-utils.svg)](https://travis-ci.org/css-modules/icss-utils)\n\n# ICSS Utils\n\n## replaceSymbols\n\nGoverns the way tokens are searched & replaced during the linking stage of ICSS loading.\n\nThis is broken into its own module in case the behaviour needs to be replicated in other PostCSS plugins\n(i.e. [CSS Modules Values](https://github.com/css-modules/postcss-modules-values))\n\n```js\nimport { replaceSymbols, replaceValueSymbols } from \"icss-utils\";\n\nreplaceSymbols(css, replacements);\nreplaceValueSymbols(string, replacements);\n```\n\nWhere:\n\n- `css` is the PostCSS tree you're working with\n- `replacements` is an JS object of `symbol: \"replacement\"` pairs, where all occurrences of `symbol` are replaced with `replacement`.\n\nA symbol is a string of alphanumeric, `-` or `_` characters. A replacement can be any string. They are replaced in the following places:\n\n- In the value of a declaration, i.e. `color: my_symbol;` or `box-shadow: 0 0 blur spread shadow-color`\n- In a media expression i.e. `@media small {}` or `@media screen and not-large {}`\n\n## extractICSS(css, removeRules = true, mode = 'auto')\n\nExtracts and remove (if removeRules is equal true) from PostCSS tree `:import`, `@icss-import`, `:export` and `@icss-export` statements.\n\n```js\nimport postcss from \"postcss\";\nimport { extractICSS } from \"icss-utils\";\n\nconst css = postcss.parse(`\n  :import(colors) {\n    a: b;\n  }\n  :export {\n    c: d;\n  }\n`);\n\nextractICSS(css);\n/*\n  {\n    icssImports: {\n      colors: {\n        a: 'b'\n      }\n    },\n    icssExports: {\n      c: 'd'\n    }\n  }\n*/\n```\n\nBy default both the pseudo and at-rule form of the import and export statements\nwill be removed. Pass the `mode` option to limit to only one type.\n\n## createICSSRules(icssImports, icssExports, mode = 'rule')\n\nConverts icss imports and exports definitions to postcss ast\n\n```js\ncreateICSSRules(\n  {\n    colors: {\n      a: \"b\",\n    },\n  },\n  {\n    c: \"d\",\n  },\n  // Need pass `rule` and `decl` from postcss\n  // Please look at `Step 4` https://evilmartians.com/chronicles/postcss-8-plugin-migration\n  postcss\n);\n```\n\nBy default it will create pseudo selector rules (`:import` and `:export`). Pass\n`at-rule` for `mode` to instead generate `@icss-import` and `@icss-export`, which\nmay be more resilient to post processing by other tools.\n\n## License\n\nISC\n\n---\n\nGlen Maddern, Bogdan Chadkin and Evilebottnawi 2015-present.\n","_attachments":{},"homepage":"https://github.com/css-modules/icss-utils#readme","bugs":{"url":"https://github.com/css-modules/icss-utils/issues"},"license":"ISC"}