{"name":"objss","version":"1.0.0-1","description":"Converts JavaScript style objects into CSS-like strings","main":"index.js","scripts":{"test":"ava"},"keywords":[],"author":{"name":"Brent Jackson"},"license":"MIT","devDependencies":{"ava":"^0.16.0"},"dependencies":{"add-px-to-style":"^1.0.0"},"_id":"objss@1.0.0-1","_shasum":"a8f2b5c5f0d4582ee2972e95c52e38ef2ae9d498","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"jxnblk","email":"jxnblk@gmail.com"},"dist":{"shasum":"a8f2b5c5f0d4582ee2972e95c52e38ef2ae9d498","tarball":"http://registry-npm.ywwl.com/objss/download/objss-1.0.0-1.tgz","integrity":"sha512-K65lUQ8M42K7SYnS3qRpUdcI4k9YBdxNJEV3AxzNJcYjL5ufa78zUyTLpB6Qan9MdErEekg5wZ8u5yA8oZnHCA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4uZ/OCKsjG+5j58I1Zuu5rYNR7FOLF38YE0crLNzIugIhAMBvkReiQWoKlB2mCXEJGvNGhpe9NYeZ37ASNiT162cR"}],"size":1246,"noattachment":false,"key":"/objss/-/objss-1.0.0-1.tgz"},"maintainers":[{"name":"jxnblk","email":"jxnblk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/objss-1.0.0-1.tgz_1476418126107_0.7404331814032048"},"readme":"\n# objss\n\nConverts JavaScript style objects into CSS-like strings.\n\n```sh\nnpm i objss\n```\n\n```js\nconst objss = require('objss')\n\nconst css = objss({\n  margin: 16,\n  color: 'tomato'\n})\n// 'margin:16px;color:tomato;'\n\nconst css = objss({\n  color: 'tomato',\n  ':hover': {\n    color: 'green'\n  }\n})\n// 'color:tomato;&:hover{color:green;}'\n```\n\n## What is this for?\n\nSometimes CSS-in-JS solutions require tagged template literals.\n\nJavaScript object literals are often easier to work with.\n\nThis can be used in place of tagged template literals.\n\n```js\nfoo([objss({ color: 'tomato' })])\n// The same as foo`color:tomato;`\n```\n\nThere might be other use-cases as well.\n\nRelated:\n\nThe reverse of this:\n\n[css-to-object](https://github.com/jxnblk/css-to-object)\n\nMIT License\n\n","publish_time":1476418127985,"_cnpm_publish_time":1476418127985,"dist-tags":{"latest":"1.0.3"}}