@tbela99/css-parser 0.0.1-alpha3 → 0.0.1-alpha5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +2 -0
- package/README.md +2 -6
- package/dist/index-umd-web.js +649 -161
- package/dist/index.cjs +647 -159
- package/dist/index.d.ts +24 -6
- package/dist/index.js +1 -1
- package/dist/lib/parser/deduplicate.js +530 -35
- package/dist/lib/parser/parse.js +100 -98
- package/dist/lib/parser/utils/syntax.js +7 -2
- package/dist/lib/renderer/render.js +11 -23
- package/dist/lib/walker/walk.js +1 -1
- package/dist/node/index.js +2 -4
- package/dist/web/index.js +5 -7
- package/package.json +5 -4
package/.gitattributes
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
/package-lock.json export-ignore
|
|
5
5
|
/.gitignore export-ignore
|
|
6
6
|
/.gitattributes export-ignore
|
|
7
|
+
/coverage/ export-ignore
|
|
7
8
|
/rollup.config.mjs export-ignore
|
|
8
9
|
/tsconfig.json export-ignore
|
|
9
10
|
# exclude all files in test/ from stats
|
|
@@ -11,6 +12,7 @@
|
|
|
11
12
|
/docs/** linguist-vendored
|
|
12
13
|
/tools/** linguist-vendored
|
|
13
14
|
/dist/** linguist-vendored
|
|
15
|
+
/coverage/** linguist-vendored
|
|
14
16
|
#
|
|
15
17
|
# do not replace lf by crlf
|
|
16
18
|
*.css text
|
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
[](https://github.com/tbela99/css-parser/actions)
|
|
2
|
+
|
|
1
3
|
# css-parser
|
|
2
4
|
|
|
3
5
|
CSS parser for node and the browser
|
|
@@ -54,12 +56,6 @@ Include ParseOptions and RenderOptions
|
|
|
54
56
|
|
|
55
57
|
## Parsing
|
|
56
58
|
|
|
57
|
-
```javascript
|
|
58
|
-
import {parse} from '@tbela99/css-parser';
|
|
59
|
-
|
|
60
|
-
const {ast, errors} = parse(css);
|
|
61
|
-
```
|
|
62
|
-
|
|
63
59
|
### Usage
|
|
64
60
|
|
|
65
61
|
```javascript
|