An open API service indexing awesome lists of open source software.

https://github.com/ooade/css2object

Converts css to object/json (fun thang!) 🤔
https://github.com/ooade/css2object

css

Last synced: about 1 year ago
JSON representation

Converts css to object/json (fun thang!) 🤔

Awesome Lists containing this project

README

          


CSS To Object/JSON



npm
travis
downloads/month
pullrequest
firsttimersonly

## Installation

```sh
npm add css2object
```

## Usage

```js
import Css2Object from 'css2object';
const cssData = `
h1 {
color: blue;
}

body {
color: red;
}
`
const css2json = new Css2Object(cssData);
css2json.read();
console.log(css2json.cssRecord);
```

## LICENSE

MIT