You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.MD
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,27 @@ This module has no external dependencies.
20
20
21
21
### Usage
22
22
23
-
```
23
+
```javascript
24
24
constCss=require('json-to-css')
25
25
constjson=require('./some-css.json')
26
26
27
27
constcss=Css.of(json)
28
28
console.log(css)
29
-
```
29
+
```
30
+
31
+
### Output
32
+
33
+
You can get a pretty good idea of what the generated CSS looks like by looking at [the tests](json-to-css/src/css.spec.js), but in a pinch it produces a somewhat minified css output. Something like:
0 commit comments