384 releases

new 0.153.1 Jul 19, 2024
0.152.0 Jul 12, 2024
0.150.30 Mar 19, 2024
0.150.21 Dec 23, 2023
0.41.0 Nov 30, 2021

#4 in #parsed

Download history 3473/week @ 2024-03-29 2071/week @ 2024-04-05 2394/week @ 2024-04-12 2225/week @ 2024-04-19 1543/week @ 2024-04-26 1966/week @ 2024-05-03 1500/week @ 2024-05-10 1836/week @ 2024-05-17 1465/week @ 2024-05-24 1567/week @ 2024-05-31 2177/week @ 2024-06-07 1978/week @ 2024-06-14 2040/week @ 2024-06-21 2481/week @ 2024-06-28 2633/week @ 2024-07-05 2135/week @ 2024-07-12

9,601 downloads per month
Used in 44 crates (15 directly)

Apache-2.0

1MB
20K SLoC

swc_css_parser

CSS parser for the SWC project

Structure

tests

/tests/fuxture

CSS -> Parsed ast -> JSON.

/tests/error

Error reporting test.

/tests/identity

These tests ensure that input.css and input.explicit.css is parsed identically. These are copied from esbuild, by modifying the test suite.

The name of a test is base64_url(md5(name)).

License

Apache 2.0 / MIT, at your option.

Lots of tests are copied from rome tools and esbuild. If you want to use tests, please consult license of those libraries.

Dependencies

~6MB
~122K SLoC