styleString2Object

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.css.transform

Transform a style string to an object representation

Params

  1. style*-String

    The style string

Return

  1. -(Object)

    The string object representation

Example

import { styleStringToObject } from '@blackbyte/sugar/css'
const styleString =  styleStringToObject('padding-left:20px; display:block;');
// output => {
//	    paddingLeft : '20px',
//     display : 'block'
// }

Todo

  • testsnormal