obj-to-css
Convert JS object to CSS declarations
Table of Contents
Table of Contents
About
Install
Usage
CLI
Contribute
License
Install
$ npm install --save obj-to-css
$ yarn add obj-to-css
Usage
const ToCss = require('obj-to-css')
const obj = {
'.hello': {
color: 'red'
},
'.foo': {
background: 'pink'
}
}
console.log(toCSS(obj))
CLI
$ obj-to-css foo.json
Contribute
Contributions are welcome. Please open up an issue or create PR if you would like to help out.
Note: If editing the README, please conform to the standard-readme specification.
License
Licensed under the MIT License.