@dev-toolbox/css-json
Advanced tools
Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "@dev-toolbox/css-json", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "module": "index.js", |
@@ -1,11 +0,26 @@ | ||
# css-json | ||
# Install | ||
This library was generated with [Nx](https://nx.dev). | ||
`npm i @dev-toolbox/css-json` | ||
## Building | ||
## Import | ||
Run `nx build css-json` to build the library. | ||
`import { CssJson } from '@dev-toolbox/css-json';` | ||
## Running unit tests | ||
## Usage | ||
Run `nx test css-json` to execute the unit tests via [Jest](https://jestjs.io). | ||
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, | ||
}; |
15530
27