css2json-cli
v0.1.1
Published
Convert CSS string to JSON
Downloads
3
Readme
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