{"name":"objss","version":"1.0.3","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"},"gitHead":"882742577bd80730536eb1a8a780a942e2d60fe3","_id":"objss@1.0.3","_shasum":"d8b7dc09c94942a15249cb6a090557363fe61bc3","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"jxnblk","email":"jxnblk@gmail.com"},"dist":{"shasum":"d8b7dc09c94942a15249cb6a090557363fe61bc3","tarball":"http://registry-npm.ywwl.com/objss/download/objss-1.0.3.tgz","integrity":"sha512-jnPZL8o+oAwMmD+xeQYqNs1VJqb369teU358cIcRl0QC6FGsdvA5h6ZecWgFeX38CVRV2mUJDVp4kbaFWl/cmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuHrhByHYYWAZcuhkMQJIPUE6WrFKVQIYVcTn//W+gQQIgFvEAP8lwiUvnjUNl0ZCgbcdKm32XrgKF/3PTt20WqU4="}],"size":1532,"noattachment":false,"key":"/objss/-/objss-1.0.3.tgz"},"maintainers":[{"name":"jxnblk","email":"jxnblk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/objss-1.0.3.tgz_1495764016780_0.5200265240855515"},"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":1495764019053,"_cnpm_publish_time":1495764019053,"dist-tags":{"latest":"1.0.3"}}