@dev-toolbox/css-json

1.0.9 • Public • Published

Install

npm i @dev-toolbox/css-json

Import

import { CssJson } from '@dev-toolbox/css-json';

Usage

const cssString = '.test{color:red;}';

const options = {}; const parser = new CssJson(CssString,options);

const output = parser.parse();

console.log('output', output);

Available Options

const defaultOptions: ICssJsonOptions = { resultType: CssJsonResultType.ADVANCED, seperateMultiSelectorStyles: false, //will omit this if resultType===CssJsonResultType.ADVANCED, keyValueAttributes: false, //will omit this if resultType===CssJsonResultType.ADVANCED, };

Package Sidebar

Install

npm i @dev-toolbox/css-json

Weekly Downloads

0

Version

1.0.9

License

ISC

Unpacked Size

15.5 kB

Total Files

3

Last publish

Collaborators

  • rameezrami