inline-style

2.0.0 • Public • Published

inline-style

NPM version License Build status

Transform an object into an inline CSS string.

Installation

npm install inline-style

Usage

var inlineStyle = require('inline-style')
 
var style = inlineStyle({
  fontSize: '0.875rem',
  color: '#aaa'
})
 
console.log(style) // => "font-size:0.875rem;color:#aaa"

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i inline-style

Weekly Downloads

14,247

Version

2.0.0

License

MIT

Last publish

Collaborators

  • gummesson