Skip to content

Commit e21a0e5

Browse files
committed
add example
1 parent c04772f commit e21a0e5

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

Readme.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,36 @@
11

22
# css-parse
33

4-
CSS parser
4+
CSS parser.
5+
6+
## Example
7+
8+
js:
9+
10+
```js
11+
var parse = require('css-parse')
12+
parse('tobi { name: "tobi" }')
13+
```
14+
15+
object returned:
16+
17+
```json
18+
{
19+
"stylesheet": {
20+
"rules": [
21+
{
22+
"selector": "tobi",
23+
"declarations": [
24+
{
25+
"property": "name",
26+
"value": "tobi"
27+
}
28+
]
29+
}
30+
]
31+
}
32+
}
33+
```
534

635
## License
736

0 commit comments

Comments
 (0)