style-css
v1.0.2
Published
Convert selectors with DOM style objects into valid CSS strings
Downloads
64
Readme
style-css
Convert selectors with DOM style objects into valid CSS strings
Install
$ npm install --save style-css
Usage
var toCss = require('style-css')
toCss({body: {fontSize: '14px'}})
//=> body{font-size:14px;}
API
toCss(styles)
-> string
styles
Required
Type: object
A DOM style object.
License
MIT © Ben Drucker