style-object
v0.0.10
Published
Convert CSS in JS to JavaScript object.
Downloads
5
Readme
style-object
Convert CSS in JS to JavaScript object.
Installation
npm install --save style-object
Usage
import {style} from 'style-object'
const obj = style`
background-color: red;
`
console.log(obj) // -> {
// backgroundColor: "red",
// }