{"name":"objss","version":"1.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"},"gitHead":"1af8f4a717ba4a5d25e3eca7ce4106eade4ccb77","_id":"objss@1.0.1","_shasum":"a3b198a2cc3589dd8cf9bd289c258c6ffd7cd5f7","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"jxnblk","email":"jxnblk@gmail.com"},"dist":{"shasum":"a3b198a2cc3589dd8cf9bd289c258c6ffd7cd5f7","tarball":"http://registry-npm.ywwl.com/objss/download/objss-1.0.1.tgz","integrity":"sha512-uitd61jUpoy9l4X1jikqR5X27M11GdvCQCrd0wgLjcoP/75hNGrSD07eKPA0ia5reUTnw0pvsUzv+KzjZF/qIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmsu9W79llzwsVLTl4VV1Arn45HYMjgn0oJ7QoW7GUAgIgBj8gzi5vfSj1dU1qt51SA/3bsDlRxxE4k84qSWDo3T0="}],"size":1495,"noattachment":false,"key":"/objss/-/objss-1.0.1.tgz"},"maintainers":[{"name":"jxnblk","email":"jxnblk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/objss-1.0.1.tgz_1494117128075_0.8144307434558868"},"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":1494117129976,"_cnpm_publish_time":1494117129976,"dist-tags":{"latest":"1.0.3"}}