css-obj
Parse css to js obj model
It is very simple right now
It requires:
- no comments
- one space before
{
}
or one key/value pair in each line- strictly
{key}: {value};
- so on ..
Usage
Source:
Parsing:
var parseCss =
Outputs:
'.hidden' 'display': 'none' 'a:hover, .btn.active' 'display': 'block' 'color': 'yellow'