Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

style-string

tobihrbr5MIT1.0.1

Generate inline style strings

readme

style-string Build Status

Generate inline style strings

Install

$ npm install --save style-string

Usage

const styleString = require('style-string');

styleString({ 'font-site': '18px', color: 'red' });
//=> 'font-site: 18px; color: red'

API

styleString(styles)

styles

Type: object

License

MIT © Tobias Herber