1.0.1 • Published 7 years ago

obj-to-css v1.0.1

Weekly downloads
16
License
MIT
Repository
github
Last release
7 years ago

Install

$ npm install --save obj-to-css
# OR
$ yarn add obj-to-css

Usage

const ToCss = require('obj-to-css')

const obj = {
  '.hello': {
    color: 'red'
  },
  '.foo': {
    background: 'pink'
  }
}

console.log(toCSS(obj)) // .hello{color:red}.foo{background:pink}

CLI

$ obj-to-css foo.json
# .hello{color:red}.foo{background:pink}

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.