{"_id":"jss-template","_rev":"2860197","name":"jss-template","description":"JSS plugin enables string templates","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"kof","email":""}],"time":{"modified":"2022-09-06T17:16:57.000Z","created":"2017-08-08T20:12:20.676Z","1.0.1":"2018-01-17T16:29:56.594Z","1.0.0":"2017-09-30T19:13:33.983Z","0.1.1":"2017-08-08T22:34:07.327Z","0.1.0":"2017-08-08T20:12:20.676Z"},"users":{},"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/jss-template.git"},"versions":{"1.0.1":{"name":"jss-template","description":"JSS plugin enables string templates","version":"1.0.1","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/jss-template.git"},"keywords":["cssinjs","css-in-js","css in js","jss","plugin","template"],"scripts":{"all":"npm run lint && npm run test && npm run build","bench":"cross-env BENCHMARK=true npm run test","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-template.js","build:dist:min":"cross-env NODE_ENV=production webpack src/index.js dist/jss-template.min.js","clean":"rimraf '{lib,dist,tests,tmp}/*'","lint":"eslint ./src ./benchmark","lint:staged":"lint-staged","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.5.1","babel-core":"^6.5.1","babel-eslint":"^6.1.2","babel-loader":"^6.2.4","babel-plugin-rewire":"^1.0.0","babel-plugin-transform-es3-member-expression-literals":"^6.22.0","babel-plugin-transform-es3-property-literals":"^6.22.0","babel-preset-es2015":"^6.9.0","babel-preset-stage-0":"^6.5.0","common-tags":"^1.4.0","cross-env":"^3.1.3","eslint":"^2.8.0","eslint-config-airbnb":"^8.0.0","eslint-config-jss":"^1.1.0","eslint-plugin-import":"^1.12.0","eslint-plugin-jsx-a11y":"^1.5.5","eslint-plugin-react":"^5.0.1","expect.js":"^0.3.1","json-loader":"^0.5.4","jss":"^9.0.0","karma":"^1.1.1","karma-benchmark":"^0.6.0","karma-benchmark-reporter":"^0.1.1","karma-browserstack-launcher":"^1.0.0","karma-chrome-launcher":"^1.0.1","karma-coverage":"^1.1.0","karma-mocha":"^1.0.1","karma-mocha-reporter":"^2.0.2","karma-sourcemap-loader":"^0.3.5","karma-webpack":"^1.7.0","lint-staged":"^3.0.1","mocha":"^3.0.2","pre-commit":"^1.1.3","rimraf":"^2.5.4","webpack":"^1.12.2"},"peerDependencies":{"jss":"^9.0.0"},"lint-staged":{"./src/*.js":["eslint --fix","git add"]},"pre-commit":"lint:staged","dependencies":{"warning":"^3.0.0"},"gitHead":"3c2875f93bb34b7e3e5f1ad53ff62a962e14c513","bugs":{"url":"https://github.com/cssinjs/jss-template/issues"},"homepage":"https://github.com/cssinjs/jss-template#readme","_id":"jss-template@1.0.1","_npmVersion":"5.4.2","_nodeVersion":"7.10.1","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"dist":{"shasum":"09aed9d86cc547b07f53ef355d7e1777f7da430a","size":9837,"noattachment":false,"key":"/jss-template/-/jss-template-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jss-template/download/jss-template-1.0.1.tgz"},"maintainers":[{"name":"kof","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jss-template-1.0.1.tgz_1516206595618_0.8605471926275641"},"directories":{},"_cnpmcore_publish_time":"2021-12-22T23:11:40.793Z","publish_time":1516206596594,"_cnpm_publish_time":1516206596594},"1.0.0":{"name":"jss-template","description":"JSS plugin enables string templates","version":"1.0.0","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/jss-template.git"},"keywords":["cssinjs","css-in-js","css in js","jss","plugin","template"],"scripts":{"all":"npm run lint && npm run test && npm run build","bench":"cross-env BENCHMARK=true npm run test","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-template.js","build:dist:min":"cross-env NODE_ENV=production webpack src/index.js dist/jss-template.min.js","clean":"rimraf '{lib,dist,tests,tmp}/*'","lint":"eslint ./src ./benchmark","lint:staged":"lint-staged","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.5.1","babel-core":"^6.5.1","babel-eslint":"^6.1.2","babel-loader":"^6.2.4","babel-plugin-rewire":"^1.0.0","babel-plugin-transform-es3-member-expression-literals":"^6.22.0","babel-plugin-transform-es3-property-literals":"^6.22.0","babel-preset-es2015":"^6.9.0","babel-preset-stage-0":"^6.5.0","common-tags":"^1.4.0","cross-env":"^3.1.3","eslint":"^2.8.0","eslint-config-airbnb":"^8.0.0","eslint-config-jss":"^1.1.0","eslint-plugin-import":"^1.12.0","eslint-plugin-jsx-a11y":"^1.5.5","eslint-plugin-react":"^5.0.1","expect.js":"^0.3.1","json-loader":"^0.5.4","jss":"^9.0.0","karma":"^1.1.1","karma-benchmark":"^0.6.0","karma-benchmark-reporter":"^0.1.1","karma-browserstack-launcher":"^1.0.0","karma-chrome-launcher":"^1.0.1","karma-coverage":"^1.1.0","karma-mocha":"^1.0.1","karma-mocha-reporter":"^2.0.2","karma-sourcemap-loader":"^0.3.5","karma-webpack":"^1.7.0","lint-staged":"^3.0.1","mocha":"^3.0.2","pre-commit":"^1.1.3","rimraf":"^2.5.4","webpack":"^1.12.2"},"peerDependencies":{"jss":"^9.0.0"},"lint-staged":{"./src/*.js":["eslint","git add"]},"pre-commit":"lint:staged","dependencies":{"warning":"^3.0.0"},"gitHead":"7e42501edbc53e33a811d22eb0a366db9f5359c5","bugs":{"url":"https://github.com/cssinjs/jss-template/issues"},"homepage":"https://github.com/cssinjs/jss-template#readme","_id":"jss-template@1.0.0","_npmVersion":"5.4.2","_nodeVersion":"7.10.1","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"dist":{"shasum":"4b874608706ddceecacdb5567e254aecb6ea69b3","size":9735,"noattachment":false,"key":"/jss-template/-/jss-template-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jss-template/download/jss-template-1.0.0.tgz"},"maintainers":[{"name":"kof","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jss-template-1.0.0.tgz_1506798813072_0.35233491542749107"},"directories":{},"_cnpmcore_publish_time":"2021-12-22T23:11:40.708Z","publish_time":1506798813983,"_cnpm_publish_time":1506798813983},"0.1.1":{"name":"jss-template","description":"JSS plugin enables string templates","version":"0.1.1","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/jss-template.git"},"keywords":["cssinjs","css-in-js","css in js","jss","plugin","template"],"scripts":{"all":"npm run lint && npm run test && npm run build","bench":"cross-env BENCHMARK=true npm run test","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-template.js","build:dist:min":"cross-env NODE_ENV=production webpack src/index.js dist/jss-template.min.js","clean":"rimraf '{lib,dist,tests,tmp}/*'","lint":"eslint ./src ./benchmark","lint:staged":"lint-staged","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.5.1","babel-core":"^6.5.1","babel-eslint":"^6.1.2","babel-loader":"^6.2.4","babel-plugin-rewire":"^1.0.0","babel-plugin-transform-es3-member-expression-literals":"^6.22.0","babel-plugin-transform-es3-property-literals":"^6.22.0","babel-preset-es2015":"^6.9.0","babel-preset-stage-0":"^6.5.0","common-tags":"^1.4.0","cross-env":"^3.1.3","eslint":"^2.8.0","eslint-config-airbnb":"^8.0.0","eslint-config-jss":"^1.1.0","eslint-plugin-import":"^1.12.0","eslint-plugin-jsx-a11y":"^1.5.5","eslint-plugin-react":"^5.0.1","expect.js":"^0.3.1","json-loader":"^0.5.4","jss":"^8.0.0","karma":"^1.1.1","karma-benchmark":"^0.6.0","karma-benchmark-reporter":"^0.1.1","karma-browserstack-launcher":"^1.0.0","karma-chrome-launcher":"^1.0.1","karma-coverage":"^1.1.0","karma-mocha":"^1.0.1","karma-mocha-reporter":"^2.0.2","karma-sourcemap-loader":"^0.3.5","karma-webpack":"^1.7.0","lint-staged":"^3.0.1","mocha":"^3.0.2","pre-commit":"^1.1.3","rimraf":"^2.5.4","webpack":"^1.12.2"},"peerDependencies":{"jss":"^8.0.0"},"lint-staged":{"./src/*.js":["eslint","git add"]},"pre-commit":"lint:staged","dependencies":{"warning":"^3.0.0"},"gitHead":"69c12b0f8ddeaa5478a49f411fca525e97df62a9","bugs":{"url":"https://github.com/cssinjs/jss-template/issues"},"homepage":"https://github.com/cssinjs/jss-template#readme","_id":"jss-template@0.1.1","_npmVersion":"5.3.0","_nodeVersion":"7.10.1","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"dist":{"shasum":"0e60b11a108197d0ae1cc8bd4ce1726acf485d45","size":12398,"noattachment":false,"key":"/jss-template/-/jss-template-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jss-template/download/jss-template-0.1.1.tgz"},"maintainers":[{"name":"kof","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jss-template-0.1.1.tgz_1502231645501_0.48917093873023987"},"directories":{},"_cnpmcore_publish_time":"2021-12-22T23:11:39.790Z","publish_time":1502231647327,"_cnpm_publish_time":1502231647327},"0.1.0":{"name":"jss-template","description":"JSS plugin enables string templates","version":"0.1.0","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/jss-template.git"},"keywords":["cssinjs","css-in-js","css in js","jss","plugin","template"],"scripts":{"all":"npm run lint && npm run test && npm run build","bench":"cross-env BENCHMARK=true npm run test","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-template.js","build:dist:min":"cross-env NODE_ENV=production webpack src/index.js dist/jss-template.min.js","clean":"rimraf '{lib,dist,tests,tmp}/*'","lint":"eslint ./src ./benchmark","lint:staged":"lint-staged","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.5.1","babel-core":"^6.5.1","babel-eslint":"^6.1.2","babel-loader":"^6.2.4","babel-plugin-rewire":"^1.0.0","babel-plugin-transform-es3-member-expression-literals":"^6.22.0","babel-plugin-transform-es3-property-literals":"^6.22.0","babel-preset-es2015":"^6.9.0","babel-preset-stage-0":"^6.5.0","common-tags":"^1.4.0","cross-env":"^3.1.3","eslint":"^2.8.0","eslint-config-airbnb":"^8.0.0","eslint-config-jss":"^1.1.0","eslint-plugin-import":"^1.12.0","eslint-plugin-jsx-a11y":"^1.5.5","eslint-plugin-react":"^5.0.1","expect.js":"^0.3.1","json-loader":"^0.5.4","jss":"^8.0.0","karma":"^1.1.1","karma-benchmark":"^0.6.0","karma-benchmark-reporter":"^0.1.1","karma-browserstack-launcher":"^1.0.0","karma-chrome-launcher":"^1.0.1","karma-coverage":"^1.1.0","karma-mocha":"^1.0.1","karma-mocha-reporter":"^2.0.2","karma-sourcemap-loader":"^0.3.5","karma-webpack":"^1.7.0","lint-staged":"^3.0.1","mocha":"^3.0.2","pre-commit":"^1.1.3","rimraf":"^2.5.4","webpack":"^1.12.2"},"peerDependencies":{"jss":"^8.0.0"},"lint-staged":{"./src/*.js":["eslint","git add"]},"pre-commit":"lint:staged","dependencies":{"warning":"^3.0.0"},"gitHead":"c8b14e07fda12c3002228455a4c26f2f265cf264","bugs":{"url":"https://github.com/cssinjs/jss-template/issues"},"homepage":"https://github.com/cssinjs/jss-template#readme","_id":"jss-template@0.1.0","_npmVersion":"5.3.0","_nodeVersion":"7.10.1","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"dist":{"shasum":"a0fbecc0f0b3837b5f232607cc34b3f98e6e29e0","size":7743,"noattachment":false,"key":"/jss-template/-/jss-template-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jss-template/download/jss-template-0.1.0.tgz"},"maintainers":[{"name":"kof","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jss-template-0.1.0.tgz_1502223139811_0.6334559579845518"},"directories":{},"_cnpmcore_publish_time":"2021-12-22T23:11:38.887Z","publish_time":1502223140676,"_cnpm_publish_time":1502223140676}},"readme":"# JSS plugin enables string templates\n\n[![Gitter](https://badges.gitter.im/JoinChat.svg)](https://gitter.im/cssinjs/lobby)\n\nMake sure you read [how to use\nplugins](https://github.com/cssinjs/jss/blob/master/docs/setup.md#setup-with-plugins)\nin general.\n\nThis plugin allows you to use string templates to declare CSS rules. It implements a __very naive__ but __very fast (~42000 ops/sec)__ runtime CSS parser, with certain limitations:\n\n- Supports only rule body (no selectors)\n- Requires semicolon and new line after the value (except of last line)\n- No nested rules support\n\n```js\nconst styles = {\n  button: `\n    border-radius: 3px;\n    background-color: green;\n    color: red;\n    margin: 20px 40px;\n    padding: 10px;\n  `,\n  '@media print': {\n    button: `color: black`\n  },\n  '@keyframes id': {\n    from: `opacity: 0`,\n    to: `opacity: 1`\n  }\n}\n```\n\n## Issues\n\nFile a bug against [cssinjs/jss prefixed with \\[jss-template\\]](https://github.com/cssinjs/jss/issues/new?title=[jss-template]%20).\n\n## Run tests\n\n```bash\nnpm i\nnpm run test\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/cssinjs/jss-template#readme","bugs":{"url":"https://github.com/cssinjs/jss-template/issues"},"license":"MIT"}