css2json-cli

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i css2json-cli

Weekly Downloads

3

Version

0.1.1

License

MIT

Last publish

Collaborators

  • fdaciuk