File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 55[ ![ Downloads] [ downloads-badge ]] [ downloads ]
66[ ![ Size] [ size-badge ]] [ size ]
77
8- Parse and stringify CSS declarations (such as the HTML ` style `
9- attribute).
8+ Parse and stringify CSS declarations (such as the HTML ` style ` attribute).
109
11- ## Installation
10+ ## Install
1211
1312[ npm] [ ] :
1413
15- ``` bash
14+ ``` sh
1615npm install css-declarations
1716```
1817
19- ## Usage
18+ ## Use
2019
21- ``` javascript
20+ ``` js
2221var cssDeclarations = require (' css-declarations' )
2322
2423var values = cssDeclarations .parse (`
@@ -48,15 +47,16 @@ Parse CSS declarations from `string` to `object`.
4847
4948### ` cssDeclarations.stringify(values) `
5049
51- Compile CSS declarations from ` object ` to ` string ` .
50+ Serialize CSS declarations from ` object ` to ` string ` .
5251
5352###### Returns
5453
55- ` string ` — Stringified declarations.
54+ ` string ` — Serialized declarations.
5655
5756### ` function warning(reason, offset) `
5857
59- Invoked when an error occurs. Errors come from [ ` reworkcss/css ` ] [ css ] .
58+ Invoked when an error occurs.
59+ Errors come from [ ` reworkcss/css ` ] [ css ] .
6060
6161###### Parameters
6262
You can’t perform that action at this time.
0 commit comments