shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
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
- style*-String
The style string
Return
- -(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
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space