README
next-css-text
Dom css text.
installation
npm install -S @jswork/next-css-text
apis
api | params | description |
---|---|---|
css2obj | (inString) | Transform string to object. |
obj2css | (inOjbect) | Transform object to string. |
usage
import NxCssText from '@jswork/next-css-text';
NxCssText.css2obj('color:#f00; background-color:red; width:100px; padding:10px 20px;');
NxCssText.obj2css({
color: '#f00',
backgroundColor: 'red',
width: '100px',
padding: '10px 20px'
});
license
Code released under the MIT license.