{"name":"objss","version":"1.0.2","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":"c8869952e3d6f0a262e9bd5c6807752aa8d8494c","_id":"objss@1.0.2","_shasum":"086d853032a6842eef5af08c43c843e22a5fd6b5","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"jxnblk","email":"jxnblk@gmail.com"},"dist":{"shasum":"086d853032a6842eef5af08c43c843e22a5fd6b5","tarball":"http://registry-npm.ywwl.com/objss/download/objss-1.0.2.tgz","integrity":"sha512-iRqIi4hfa8isQjq7Qu/K/1MUtYuVDgb3wMxTNBD4myoCN+bopJfb2cveafR3HQ1G3YYz2TAmd1vrP4GoHeatNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJRtCi/RZUE9fmxWN2HSarLMSRKhdLQ4h67iJkFYnmVQIhAMiwmt9AT6LniTlqSAkpKjR9jvUY35Ym+AAH9exIwrYM"}],"size":1515,"noattachment":false,"key":"/objss/-/objss-1.0.2.tgz"},"maintainers":[{"name":"jxnblk","email":"jxnblk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/objss-1.0.2.tgz_1494118838966_0.4675215461757034"},"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":1494118840387,"_cnpm_publish_time":1494118840387,"dist-tags":{"latest":"1.0.3"}}