css2json-cli
v0.1.1 css json
CSS2JSON
CLI tool to convert CSS String to JSON
Installation
For using directly on terminal, install globally:
[sudo] npm i -g css2json-cli
For using as npm script, just type:
npm i --save-dev css2json
Usage
css2json <css-string>
Example
Input:
css2json "font: 14px Arial, sans-serif; color: #fff"
Output:
{ "font": "14px Arial, sans-serif", "color": "#fff" }
Todo
- Convert all CSS file
- Option to convert just properties
- Option to return as JS object
License
MIT License © Fernando Daciuk
npm i css2json-cli
Metadata
- MIT
- Whatever
- Fernando Daciuk - @fdaciuk
- released 2/26/2016