motion
Version:
motion - moving development forward
72 lines (71 loc) • 3.32 kB
JSON
{
"_args": [
[
"icss-replace-symbols@https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.0.2.tgz",
"/Users/nw/flint/packages/flint"
]
],
"_from": "icss-replace-symbols@>=1.0.2 <2.0.0",
"_id": "icss-replace-symbols@1.0.2",
"_inCache": true,
"_location": "/icss-replace-symbols",
"_phantomChildren": {},
"_requested": {
"name": "icss-replace-symbols",
"raw": "icss-replace-symbols@https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.0.2.tgz",
"rawSpec": "https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.0.2.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.0.2.tgz",
"type": "remote"
},
"_requiredBy": [
"/postcss-modules-values"
],
"_resolved": "https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.0.2.tgz",
"_shasum": "cb0b6054eb3af6edc9ab1d62d01933e2d4c8bfa5",
"_shrinkwrap": null,
"_spec": "icss-replace-symbols@https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.0.2.tgz",
"_where": "/Users/nw/flint/packages/flint",
"author": {
"name": "Glen Maddern"
},
"bugs": {
"url": "https://github.com/css-modules/icss-replace-symbols/issues"
},
"dependencies": {},
"description": "Replacing symbols during the linking phase of ICSS",
"devDependencies": {
"babel": "^5.8.23",
"chokidar": "^1.0.6",
"mocha": "^2.3.2",
"postcss": "^5.0.5",
"standard": "^5.3.1"
},
"homepage": "https://github.com/css-modules/icss-replace-symbols#readme",
"keywords": [
"css",
"icss",
"modules",
"postcss"
],
"license": "ISC",
"main": "lib/index.js",
"name": "icss-replace-symbols",
"optionalDependencies": {},
"readme": "# 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",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/css-modules/icss-replace-symbols.git"
},
"scripts": {
"autotest": "chokidar src test -c 'npm test'",
"build": "babel --out-dir lib src",
"lint": "standard src test",
"posttest": "npm run lint && npm run build",
"prepublish": "npm run build",
"test": "mocha --compilers js:babel/register",
"travis": "npm run test"
},
"version": "1.0.2"
}