Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/csstools/parser
CSS Parser
https://github.com/csstools/parser
Last synced: about 1 month ago
JSON representation
CSS Parser
- Host: GitHub
- URL: https://github.com/csstools/parser
- Owner: csstools
- Created: 2020-07-10T03:24:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-09-15T05:09:24.000Z (about 4 years ago)
- Last Synced: 2024-04-14T05:31:41.339Z (8 months ago)
- Language: JavaScript
- Homepage: https://csstools.github.io/parser/
- Size: 1.78 MB
- Stars: 64
- Watchers: 9
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-star - parser
README
# CSS Parser
## CSS Object Model
See [src/values/README.md](src/values/README.md).
## Commands
### Benchmark
```shell
npm run benchmark
``````
> node run/benchmark.tokenize.jsCollecting PostCSS Tokenizer Benchmarks...
PostCSS Tokenizer (7.0.32): 49872 tokens in 9 ms
PostCSS Tokenizer (Development): 58823 tokens in 11 ms (1.2 times slower)> node run/benchmark.parse.js
Collecting PostCSS Parser Benchmarks...
PostCSS Parser (7.0.32): 6240 values in 12 ms
PostCSS Parser (Development): 58823 values in 34 ms (2.9 times slower)
PostCSS/Selector/Value Parsers: 28491 values in 74 ms (6.3 times slower)
```### Build
```shell
npm run build
``````
┌─────────────────────────────────┐
│ │
│ Destination: dist/index.cjs │
│ Bundle Size: 39.16 KB │
│ Minified Size: 12.51 KB │
│ Gzipped Size: 3.32 KB │
│ │
└─────────────────────────────────┘
┌─────────────────────────────────┐
│ │
│ Destination: dist/index.mjs │
│ Bundle Size: 38.97 KB │
│ Minified Size: 12.34 KB │
│ Gzipped Size: 3.27 KB │
│ │
└─────────────────────────────────┘
┌─────────────────────────────────────┐
│ │
│ Destination: dist/index.iife.js │
│ Bundle Size: 9.31 KB │
│ Minified Size: 9.31 KB │
│ Gzipped Size: 2.8 KB │
│ │
└─────────────────────────────────────┘
```### Test
```shell
npm run test
```All checks should pass.