0.1.1 • Published 8 years ago

css2json-cli v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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