{"_id":"icss-replace-symbols","_rev":"85269","name":"icss-replace-symbols","description":"Replacing symbols during the linking phase of ICSS","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"geelen","email":""}],"time":{"modified":"2021-06-03T10:27:36.000Z","created":"2015-09-19T12:17:27.796Z","1.1.0":"2017-05-21T22:57:36.049Z","1.0.2":"2015-10-19T11:23:28.661Z","1.0.1":"2015-09-19T12:49:06.954Z","1.0.0":"2015-09-19T12:17:27.796Z"},"users":{},"author":{"name":"Glen Maddern"},"repository":{"type":"git","url":"git+https://github.com/css-modules/icss-replace-symbols.git"},"versions":{"1.1.0":{"name":"icss-replace-symbols","version":"1.1.0","description":"Replacing symbols during the linking phase of ICSS","main":"lib/index.js","scripts":{"lint":"standard src test","build":"babel --out-dir lib src","autotest":"chokidar src test -c 'npm test'","test":"mocha --compilers js:babel-register","posttest":"npm run lint && npm run build","travis":"npm run test","prepublish":"npm run build"},"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","devDependencies":{"babel-cli":"^6.18.0","babel-preset-es2015":"^6.18.0","babel-register":"^6.18.0","chokidar":"^1.3.0","mocha":"^3.1.2","postcss":"^6.0.1","standard":"^8.4.0"},"gitHead":"c791050af4e2dfccde7131d0d600dc62ff1cbd2f","_id":"icss-replace-symbols@1.1.0","_shasum":"06ea6f83679a7749e386cfe1fe812ae5db223ded","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"geelen","email":"hi@glenmaddern.com"},"dist":{"shasum":"06ea6f83679a7749e386cfe1fe812ae5db223ded","size":1605,"noattachment":false,"key":"/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-replace-symbols/download/icss-replace-symbols-1.1.0.tgz"},"maintainers":[{"name":"geelen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/icss-replace-symbols-1.1.0.tgz_1495407455952_0.5921347851399332"},"directories":{},"publish_time":1495407456049,"_hasShrinkwrap":false,"_cnpm_publish_time":1495407456049},"1.0.2":{"name":"icss-replace-symbols","version":"1.0.2","description":"Replacing symbols during the linking phase of ICSS","main":"lib/index.js","scripts":{"lint":"standard src test","build":"babel --out-dir lib src","autotest":"chokidar src test -c 'npm test'","test":"mocha --compilers js:babel/register","posttest":"npm run lint && npm run build","travis":"npm run test","prepublish":"npm run build"},"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","devDependencies":{"babel":"^5.8.23","chokidar":"^1.0.6","mocha":"^2.3.2","postcss":"^5.0.5","standard":"^5.3.1"},"gitHead":"a8ce3973637eb39ceebebfa7046a93334952cd49","_id":"icss-replace-symbols@1.0.2","_shasum":"cb0b6054eb3af6edc9ab1d62d01933e2d4c8bfa5","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.2","_npmUser":{"name":"geelen","email":"hi@glenmaddern.com"},"dist":{"shasum":"cb0b6054eb3af6edc9ab1d62d01933e2d4c8bfa5","size":2506,"noattachment":false,"key":"/icss-replace-symbols/-/icss-replace-symbols-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-replace-symbols/download/icss-replace-symbols-1.0.2.tgz"},"maintainers":[{"name":"geelen","email":""}],"directories":{},"publish_time":1445253808661,"_cnpm_publish_time":1445253808661,"_hasShrinkwrap":false},"1.0.1":{"name":"icss-replace-symbols","version":"1.0.1","description":"Replacing symbols during the linking phase of ICSS","main":"lib/index.js","scripts":{"lint":"standard src test","build":"babel --out-dir lib src","autotest":"chokidar src test -c 'npm test'","test":"mocha --compilers js:babel/register","posttest":"npm run lint && npm run build","prepublish":"npm run build"},"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","devDependencies":{"babel":"^5.8.23","chokidar":"^1.0.6","mocha":"^2.3.2","postcss":"^5.0.5","standard":"^5.3.1"},"gitHead":"37e1201185e55933c8c8e8c1d8b4b64680ddb695","_id":"icss-replace-symbols@1.0.1","_shasum":"afd6d6b01a21a7b84682aa5314b05075ea59447b","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.2","_npmUser":{"name":"geelen","email":"hi@glenmaddern.com"},"dist":{"shasum":"afd6d6b01a21a7b84682aa5314b05075ea59447b","size":2130,"noattachment":false,"key":"/icss-replace-symbols/-/icss-replace-symbols-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-replace-symbols/download/icss-replace-symbols-1.0.1.tgz"},"maintainers":[{"name":"geelen","email":""}],"directories":{},"publish_time":1442666946954,"_cnpm_publish_time":1442666946954,"_hasShrinkwrap":false},"1.0.0":{"name":"icss-replace-symbols","version":"1.0.0","description":"Replacing symbols during the linking phase of ICSS","main":"lib/index.js","scripts":{"lint":"standard src test","build":"babel --out-dir lib src","autotest":"chokidar src test -c 'npm test'","test":"mocha --compilers js:babel/register","posttest":"npm run lint && npm run build","prepublish":"npm run build"},"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","devDependencies":{"babel":"^5.8.23","chokidar":"^1.0.6","mocha":"^2.3.2","postcss":"^5.0.5","standard":"^5.3.1"},"gitHead":"702cb6c8e69578d1081bc470822e9a40ca41e593","_id":"icss-replace-symbols@1.0.0","_shasum":"8f777aa2126711b2e814954fcdbf9a3c0cf9f108","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.2","_npmUser":{"name":"geelen","email":"hi@glenmaddern.com"},"dist":{"shasum":"8f777aa2126711b2e814954fcdbf9a3c0cf9f108","size":2134,"noattachment":false,"key":"/icss-replace-symbols/-/icss-replace-symbols-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/icss-replace-symbols/download/icss-replace-symbols-1.0.0.tgz"},"maintainers":[{"name":"geelen","email":""}],"directories":{},"publish_time":1442665047796,"_cnpm_publish_time":1442665047796,"_hasShrinkwrap":false}},"readme":"[![Build Status](https://img.shields.io/travis/css-modules/icss-replace-symbols/master.svg?style=flat-square)]()\n\n# ICSS — Replace Symbols\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 (i.e. [CSS Modules Constants](https://github.com/css-modules/postcss-modules-constants))\n\n## API\n\n```js\nimport replaceSymbols from \"icss-replace-symbols\"\nreplaceSymbols(css, translations)\n```\n\nWhere:\n\n- `css` is the PostCSS tree you're working with\n- `translations` is an JS object of `symbol: \"replacement\"` pairs, where all occurrences of `symbol` are replaced with `replacement`.\n\n## Behaviour\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## License\n\nISC\n\n---\nGlen Maddern, 2015.\n","_attachments":{},"homepage":"https://github.com/css-modules/icss-replace-symbols#readme","bugs":{"url":"https://github.com/css-modules/icss-replace-symbols/issues"},"license":"ISC"}