1.0.2 • Published 8 years ago

style-css v1.0.2

Weekly downloads
21
License
MIT
Repository
github
Last release
8 years ago

style-css Build Status

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