{"_id":"icss-replace-symbols","maintainers":[{"name":"geelen","email":"hi@glenmaddern.com"}],"keywords":["css","modules","icss","postcss"],"dist-tags":{"latest":"1.1.0"},"author":{"name":"Glen Maddern"},"description":"Replacing symbols during the linking phase of ICSS","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","repository":{"type":"git","url":"git+https://github.com/css-modules/icss-replace-symbols.git"},"bugs":{"url":"https://github.com/css-modules/icss-replace-symbols/issues"},"license":"ISC","versions":{"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","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/icss-replace-symbols/-/icss-replace-symbols-1.0.0.tgz","integrity":"sha512-G5Dwn2BKY9rs7jIcoD+ngJzU/halKDTB+xxWPTpfSiWEhfpfsSpOlQppSfFN8ZjRoAgFeYo8gZzeAtFPlg3GoQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQPzpjpzIHEP5VMyxQZhY4UpGqUMa9Yup0OlgZeMVFNwIhAI73kxng0fWiuYqYVtC6OG8bBGY+siav3LCPRZkL10y+"}]},"maintainers":[{"name":"geelen","email":"hi@glenmaddern.com"}]},"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","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/icss-replace-symbols/-/icss-replace-symbols-1.0.1.tgz","integrity":"sha512-l06uMX8+eRz0/tIjbjHKqAAiTjuE+DrVUfb89HXC9+3WRHF4R0GoOsZ4/7Dkb1t1BDr61lYGQpsFDwozsERaTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVDNRy6C901Zf8ce2KydPtOF5vgLu3TXRKco/gvbOKKwIhAP8eGYCYebOmcrbR8WXeVu53sBDI9n9BDt0sPVEp2gV0"}]},"maintainers":[{"name":"geelen","email":"hi@glenmaddern.com"}]},"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","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz","integrity":"sha512-chIaY3Vh2mh2Q3RGXttaDIzeiPvaVXJ+C4DAh/w3c37SKZ/U6PGMmuicR2EQQp9bKG8zLMCl7I+PtIoOOPp8Gg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuuf3nhnrAuLRo0gYB9SjrAns8XqV5p3uJwZ5EOpaoXwIgSn7LkMZcO75a/X5UZKtVugedJQt51+zLY9ibD+bdDZ0="}]},"maintainers":[{"name":"geelen","email":"hi@glenmaddern.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/icss-replace-symbols-1.1.0.tgz_1495407455952_0.5921347851399332"}},"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","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/icss-replace-symbols/-/icss-replace-symbols-1.0.2.tgz","integrity":"sha512-vm7z490v8C6/fD1N+jK9n8Ou4Ey85Y1Hmo5P5q5dobOHernDEah7UUa6dqj2O8dzhsdBNvQoyopAOYkRbwQbpA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFw/1IrgbxWti+jtqNK4xrMEWpMwc+3GauhqcDkazQkhAiBq1tTQoEwaUqIaS0yyFLmXCKjNnpW1I9KIbOcazhYUmg=="}]},"maintainers":[{"name":"geelen","email":"hi@glenmaddern.com"}]}},"name":"icss-replace-symbols","time":{"created":"2015-09-19T12:17:27.796Z","modified":"2025-05-13T17:26:42.309Z","1.0.0":"2015-09-19T12:17:27.796Z","1.0.1":"2015-09-19T12:49:06.954Z","1.1.0":"2017-05-21T22:57:36.049Z","1.0.2":"2015-10-19T11:23:28.661Z"},"readmeFilename":"README.md","homepage":"https://github.com/css-modules/icss-replace-symbols#readme"}