Skip to content

Commit 5589cd5

Browse files
committed
chores(release): 0.1.0 - deno.land/x
1 parent ce45100 commit 5589cd5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
11
# `css_parser`
22
CSS Lexer & Parser implementation for Deno
3+
4+
### Usage
5+
6+
Parse CSS to AST -
7+
```typescript
8+
import { parse } from "https://deno.land/x/[email protected]/mod.ts";
9+
10+
let ast = parse("/* comment */ p { color: black; }", {/* OPTIONS */})
11+
// {
12+
// type: "stylesheet",
13+
// stylesheet: {
14+
// rules: [
15+
// { type: "comment", text: " comment ", position: [Object] },
16+
// { type: "rule", selectors: [Array], declarations: [Array], position: [Object] }
17+
// ]
18+
// }
19+
```

0 commit comments

Comments
 (0)