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

Package detail

@jswork/next-css-text

afeiship5MIT1.0.1

Dom css text.

next, csstext

readme

next-css-text

Dom css text.

version license size download

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.