{"name":"jss-expand","description":"JSS plugin that gives you a better syntax than CSS.","version":"5.2.0","author":{"name":"Pavel Davydov","email":"typical000@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/jss-expand.git"},"keywords":["cssinjs","css-in-js","css in js","jss","plugin","expand"],"scripts":{"all":"npm run lint && npm run test && npm run build","build":"npm run clean && npm run build:lib && npm run build:tests && npm run build:dist","build:lib":"babel src --out-dir lib","build:tests":"npm run build:tests:lib && npm run build:tests:local","build:tests:lib":"cross-env NODE_ENV=test babel src --out-dir tests","build:tests:local":"cross-env NODE_ENV=test webpack src/index.test.js tmp/tests.js","build:dist":"npm run build:dist:max && npm run build:dist:min","build:dist:max":"cross-env NODE_ENV=development webpack src/index.js dist/jss-expand.js","build:dist:min":"cross-env NODE_ENV=production webpack src/index.js dist/jss-expand.min.js","clean":"rimraf '{lib,dist,tests,tmp}/*'","lint":"eslint ./src","lint:staged":"lint-staged","bench":"cross-env NODE_ENV=test BENCHMARK=true karma start --single-run ","test":"cross-env NODE_ENV=test karma start --single-run ","test:watch":"cross-env NODE_ENV=test karma start","prepublishOnly":"npm run all"},"license":"MIT","main":"./lib/index.js","devDependencies":{"babel-cli":"^6.14.0","babel-core":"^6.14.0","babel-eslint":"^6.1.2","babel-loader":"^6.2.5","babel-preset-es2015":"^6.14.0","babel-preset-stage-0":"^6.5.0","cross-env":"^2.0.1","eslint":"^2.13.1","eslint-config-airbnb":"^8.0.0","eslint-config-jss":"^1.1.0","eslint-plugin-import":"^1.14.0","eslint-plugin-jsx-a11y":"^1.5.5","eslint-plugin-react":"^5.2.2","expect.js":"^0.3.1","json-loader":"^0.5.4","jss":"^9.4.0","karma":"^1.2.0","karma-benchmark":"^0.6.0","karma-benchmark-reporter":"^0.1.1","karma-browserstack-launcher":"^1.1.1","karma-chrome-launcher":"^2.0.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.0.0","karma-mocha":"^1.1.1","karma-mocha-reporter":"^2.1.0","karma-safari-launcher":"^1.0.0","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.8.0","lint-staged":"^3.0.1","mocha":"^3.0.2","pre-commit":"^1.1.3","rimraf":"^2.5.4","webpack":"^1.12.2","zen-observable":"^0.6.0"},"peerDependencies":{"jss":"^9.4.0"},"lint-staged":{"./src/*.js":["eslint","git add"]},"pre-commit":"lint:staged","dependencies":{},"gitHead":"a3c6a85929710c6de5730cbef364d69d1db0b5c7","bugs":{"url":"https://github.com/cssinjs/jss-expand/issues"},"homepage":"https://github.com/cssinjs/jss-expand#readme","_id":"jss-expand@5.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.0.0","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"dist":{"integrity":"sha512-wagt0yq1rkG+TJCRVhcEtif9/KbCazj8QZQ+pqxXSNDH7d2uvhmlq2qramFz8Zw/7dhRYKLEsMrRJc/aFToaVg==","shasum":"2c454773b3864e30a871fb4378defeec0d5141d0","tarball":"http://registry-npm.ywwl.com/jss-expand/download/jss-expand-5.2.0.tgz","fileCount":29,"unpackedSize":250107,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7c7pCRA9TVsSAnZWagAATtIQAJLKS0QUPfAmhnQKD2um\nM/yRLUNfS/IA0CAMUpcoSlwDuA1p3pt4ZtQZirmg+No+yD0b3d8p9zWCbQjN\nSPgP3Tc8Vah6lr6NIYE7AnVmWQzg1/Cfb1yTWiEJxWwaQq52Gp2V/+vwSXJm\nAI0rT72yOfLP844J0CqsgWfMEvi6hQWN4Qjf4ky51cA4UOZ4X0KxVrc1nszf\nR4z6PQJP1iMb50YKqOqSk1l22bHQOCSRyKPlFaSh2mysjajSc3dgcb3rXeXj\naXy8gKsv6KIhUB9QRIgE9QBAGbmNJ/r4m0qZgvE6kPYIv49jFr12LZFmCKP/\nBQw/MuCPltJm0BUTZDGHV7AmrzC5zf4vCL3hvYEnR0LLpsEs/ufr/R4OclfF\nipNtDL1MjA0e+7mTOl9GEk+QLdcsoicwSJKYQi3WbIZYrz/SU/8h8HpVKI8I\nRXOVGRAnxUcnFbzbAfm+4M77KL+y9dihOrdHUPxxK6UjOpBPp1fYbsxJcMNf\naJv4o47+q4pukHFSHylPJaiz23GPWKQ/ojuw+G5a4+2000nHk0yj3TvVFOKt\nnhIRn0yDpedOcLz34hFHUzOkTUzwe/bQWXjCOMzsbMkjO/PEV99tpA2S/t++\nloYVPeK17fy7g1jZxt8uiunvTM81dHH5BqxSH/6rO9qMkrumYqUFyzHYr66Z\nBJNz\r\n=EAqw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF4lB1WO/iAQU2A3Y8LSzKEE2mpml8K+504D/hvdXBWzAiEA55xS2y54bPoGNY+lsltDQG0anwVEFMRxKiaWj9uc6QY="}],"size":41258,"noattachment":false,"key":"/jss-expand/-/jss-expand-5.2.0.tgz"},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jss-expand_5.2.0_1525534439966_0.7795783354320891"},"_hasShrinkwrap":false,"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":1525534440206,"_cnpm_publish_time":1525534440206,"dist-tags":{"latest":"5.3.0"}}