{"name":"jss-expand","description":"JSS plugin that adds possibility to write styles in more expanded way","version":"1.1.0","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","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":"webpack src/index.js dist/jss-expand.js","build:min":"webpack src/index.js dist/jss-expand.min.js","lint":"eslint ./src","prepublish":"npm run all"},"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","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","jss":"^4.0.3","opener":"^1.4.1","qunitjs":"^2.0.0","rimraf":"^2.5.3","webpack":"^1.13.1"},"gitHead":"71f1dd5945581e96b7e86e694c9e91377e11b1fe","bugs":{"url":"https://github.com/typical000/jss-expand/issues"},"homepage":"https://github.com/typical000/jss-expand#readme","_id":"jss-expand@1.1.0","_shasum":"d63bed9757fa627a6d2a2e4a286de3d6bcacda07","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"typical000","email":"typical000@gmail.com"},"dist":{"shasum":"d63bed9757fa627a6d2a2e4a286de3d6bcacda07","tarball":"http://registry-npm.ywwl.com/jss-expand/download/jss-expand-1.1.0.tgz","integrity":"sha512-D9fgDr/TcFLq7sWUuJmT7G6jSgiyY21dY0aPJRPmPjwcNXI4Nh6Z8475yuZynTuBpopTreaDKxpIKIpeTH7AlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3ZIvSEKxxPtLSSVtX1VnHVh+4N4qTqkrJhhCGn4fITAIhANQpFq/OlAwgWwYg41iym4A/iUlJzzNB7bBwHmmBS6ax"}],"size":6822,"noattachment":false,"key":"/jss-expand/-/jss-expand-1.1.0.tgz"},"maintainers":[{"name":"typical000","email":"typical000@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/jss-expand-1.1.0.tgz_1467844391389_0.9475233564153314"},"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":1467844392477,"_cnpm_publish_time":1467844392477,"dist-tags":{"latest":"5.3.0"}}