stringtocssobject
v1.3.0
Published
This package also exposes the ability to access or generate additional syntax parsers that can then be used with the primary export or as stand-alone string parsing functions.
Readme
String To Css Object
This package also exposes the ability to access or generate additional syntax parsers that can then be used with the primary export or as stand-alone string parsing functions.
Installation
Use the package manager npm to install stringtocssobject.
npm i stringtocssobjectUsage
import StringToCss from 'style-obj-to-css-string';
// I now regret my choice in package name
const styles = "border:solid 1px;color:red"
const styleString = StringToCss(styles);
# returns {
border: 'solid 1px',
color: 'red'
}
