{"name":"jss-expand","description":"JSS plugin that adds possibility to write styles in more expanded way","version":"1.4.1","author":{"name":"Pavel Davydov","email":"typical000@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/typical000/jss-expand.git"},"keywords":["jss","plugin","expand"],"engines":{},"scripts":{"all":"npm run lint && npm run build","bench":"karma start --single-run","test":"opener ./test/index.html","build":"npm run clean && npm run build:lib && npm run build:max && npm run build:min","clean":"rimraf ./lib/*","build:lib":"babel src --out-dir lib","build:max":"cross-env NODE_ENV=development webpack src/index.js dist/jss-expand.js","build:min":"cross-env NODE_ENV=production webpack src/index.js dist/jss-expand.min.js","lint":"eslint ./src","prepublish":"npm run all && git push --tags"},"license":"MIT","main":"./lib/index.js","devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.10.4","babel-eslint":"^6.1.0","babel-loader":"^6.2.4","babel-preset-es2015":"^6.9.0","babel-preset-stage-0":"^6.5.0","cross-env":"^2.0.0","eslint":"^2.13.1","eslint-config-airbnb":"^8.0.0","eslint-config-jss":"^1.1.0","eslint-plugin-import":"^1.10.2","eslint-plugin-jsx-a11y":"^1.5.5","eslint-plugin-react":"^5.2.2","json-loader":"^0.5.4","jss":"^5.1.0","karma":"^1.1.2","karma-benchmark":"^0.6.0","karma-benchmark-reporter":"^0.1.1","karma-chrome-launcher":"^1.0.1","karma-webpack":"^1.7.0","lodash.assign":"^4.1.0","opener":"^1.4.1","qunitjs":"^2.0.0","rimraf":"^2.5.3","webpack":"^1.13.1"},"gitHead":"e6c6cde147e9f356e4d9bf97252e75788a412c88","bugs":{"url":"https://github.com/typical000/jss-expand/issues"},"homepage":"https://github.com/typical000/jss-expand#readme","_id":"jss-expand@1.4.1","_shasum":"cd24dc010820fca4cbaedd0efad6685603ed9765","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"typical000","email":"typical000@gmail.com"},"dist":{"shasum":"cd24dc010820fca4cbaedd0efad6685603ed9765","tarball":"http://registry-npm.ywwl.com/jss-expand/download/jss-expand-1.4.1.tgz","integrity":"sha512-sIv3i3u3Ev2wmcgrvIHnGotFE0nBJlk1OSAYXvuZRs9pExd4XK3dD5nGAYbxXOyZ9ZO9IDmdq10JLiptUqDOKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoxMpNqkXmo6NZQ3kCtOvdn0grMkqkqIX+qZMxB+5r6QIhAInIhxrWtNm+GttbK73XLDieVHiYGjo742GnB/slBPEu"}],"size":26047,"noattachment":false,"key":"/jss-expand/-/jss-expand-1.4.1.tgz"},"maintainers":[{"name":"typical000","email":"typical000@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jss-expand-1.4.1.tgz_1470566656607_0.38579868781380355"},"directories":{},"readme":"# JSS plugin that gives you a better syntax than CSS\n\nCan you remember what each of those values mean `box-shadow: 2px 2px 2px 1px gold;` and in which order they have to be used? Me neither. CSS values are sometimes cryptic. This plugin makes them easy to read and to remember.\n\nMake sure you read [how to use\nplugins](https://github.com/cssinjs/jss/blob/master/docs/setup.md#setup-with-plugins)\nin general and [read full documentation](https://github.com/cssinjs/jss-expand/blob/master/docs/index.md).\n\n[![Gitter](https://badges.gitter.im/JoinChat.svg)](https://gitter.im/cssinjs/lobby)\n\n## Example\n\n```javascript\nconst styles = {\n  container: {\n    padding: [20, 10],\n    background: {\n      color: 'green',\n      image: 'url(image.jpg)',\n      position: [0, 0],\n      repeat: 'no-repeat'\n    },\n    boxShadow: {x: 10, y: 10, blur: 5, spread: 5, color: 'black'},\n    transition: [\n      {\n        property: 'opacity',\n        duration: '200ms'\n      },\n      {\n        property: 'width',\n        duration: '300ms'\n      }\n    ]\n  }\n}\n```\nCompiles to:\n\n```css\n.container-3kjh2 {\n  padding: 20px 10px;\n  background: green url(image.jpg) 0 0 no-repeat;\n  box-shadow: 10px 10px 5px 5px black;\n  transition: opacity 200ms, width 300ms;\n}\n```\n\n## Features\n\n1. Expanded object notation for all properties.\n\n  ```javascript\n  border: {\n    width: '1px',\n    style: 'solid',\n    color: 'red'\n  }\n  ```\n\n  will be converted to\n\n  ```css\n  border: 1px solid red;\n  ```\n\n1. Array notation for properties like `margin`, `padding` and others.\n\n  ```javascript\n  padding: [20, 10],\n  borderRadius: ['50%', '10%']\n  ```\n\n1. Expanded arrays for multi value properties.\n\n  ```javascript\n  transition: [{\n    property: 'opacity',\n    duration: '200ms'\n  }, {\n    property: 'width',\n    duration: '300ms'\n  }]\n  ```\n  will be converted to\n\n  ```css\n  transition: opacity 200ms, width 300ms;\n  ```\n\n1. Default unit support.\n\n  Now, using expanded arrays and objects syntax, you don't need to use quotes for the most numeric values! This is achieved in combination with [jss-default-unit](https://github.com/cssinjs/jss-default-unit) plugin.\n\n## Issues\n\nFile a bug against [cssinjs/jss prefixed with \\[jss-expand\\]](https://github.com/cssinjs/jss/issues/new?title=[jss-expand]%20).\n\n## Run tests\n\n```bash\nnpm i\nnpm run test\n```\n\n## Run benchmark tests\n\n```bash\nnpm i\nnpm run bench\n```\n\n## Licence\n\nMIT\n","publish_time":1470566658458,"_cnpm_publish_time":1470566658458,"dist-tags":{"latest":"5.3.0"}}