Coffeekraken.io 0.0.1

styleString2Object

Transform a style string to an object representation

Name Type Description Status Default
style { String } The style string required

Return { (Object) } The string object representation

Example

    import styleString2Object from 'sugarcss/js/dom/styleString2Object'
const styleString = styleString2Object('padding-left:20px; display:block;');
// output => {
//        paddingLeft : '20px',
//         display : 'block'
// }

Author : Olivier Bossel olivier.bossel@gmail.com