375 releases (149 breaking)

new 0.150.28 Feb 25, 2024
0.150.24 Jan 24, 2024
0.150.21 Dec 23, 2023
0.150.16 Nov 15, 2023
0.41.0 Nov 30, 2021

#2376 in Web programming

Download history 4781/week @ 2023-11-05 5310/week @ 2023-11-12 4634/week @ 2023-11-19 6209/week @ 2023-11-26 4087/week @ 2023-12-03 2899/week @ 2023-12-10 2412/week @ 2023-12-17 2542/week @ 2023-12-24 3527/week @ 2023-12-31 4202/week @ 2024-01-07 4520/week @ 2024-01-14 4606/week @ 2024-01-21 3472/week @ 2024-01-28 2127/week @ 2024-02-04 2815/week @ 2024-02-11 9455/week @ 2024-02-18

18,201 downloads per month
Used in 19 crates (14 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

~3.5–5MB
~120K SLoC