# json-css

> Utility to convert CSS to JSON and vice versa.

Latest version **1.5.6** (published 2017-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install json-css
pnpm add json-css
yarn add json-css
bun add json-css
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.6 |
| Published | 2017-05-30 |
| First published | 2017-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Jyothi Babu Araja |
| Maintainers | arajajyothibabu |
| Keywords | css, json, css, to, json, json, to, css, convertor |

## Links

- npm: https://www.npmjs.com/package/json-css
- Repository: https://github.com/arajajyothibabu/json-css
- Homepage: https://github.com/arajajyothibabu/json-css#readme
- Issues: https://github.com/arajajyothibabu/json-css/issues
- npm.io page: https://npm.io/package/json-css

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.5.6 (latest) — 2017-05-30

## README

# JSON-CSS | CSS-JSON

##### Utility to convert Cascading Style Sheets (CSS) to JSON objects and vice versa.

[![npm version](https://badge.fury.io/js/json-css.svg)](https://badge.fury.io/js/json-css)

### [TRY HERE](https://arajajyothibabu.github.io/json-css/)

- Yet to support media queries
- Yet to support Files

#### Import:

- Installing with NPM

        npm install json-css --save
        
- Import in es6

        import JsonCSS from 'json-css';
        
- Import through `require` in es5

        var JsonCSS = require('json-css');
        
#### Usage

- to JSON with CSS as input type `string`

        JsonCSS.toJSON(`
            h1 {
                color: #F1F1F1;
            }
        `);
        
- to CSS with JSON as input type `object`

        JsonCSS.toCSS({
            h1: {
                color: "#F1F1F1"
            }
        });

---
_Source: https://npm.io/package/json-css · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
