css
A CSS parser and minifier and sourcemap generator written in PHP (by tbela99)
csstree
A tool set for CSS including fast detailed parser, walker, generator and lexer based on W3C specs and browser implementations (by csstree)
css | csstree | |
---|---|---|
1 | 1 | |
14 | 1,836 | |
- | 0.9% | |
0.0 | 7.1 | |
9 months ago | 6 months ago | |
PHP | JavaScript | |
GNU General Public License v3.0 or later | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
css
Posts with mentions or reviews of css.
We have used some of these posts to build our list of alternatives
and similar projects.
csstree
Posts with mentions or reviews of csstree.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-12.
-
Building a lightweight CSS formatter
After thinking about the problem for a while I realised that I could enlist the help of CSSTree to do some of the work. The CSS Analyzer is based on CSSTree's AST, so I know how the thing works and the dependency is already on the page, so no need to download more dependencies. Prettier + Postcss cost almost 340kB to download, which isn't huge, but it would be nice if we could reduce that amount.
What are some alternatives?
When comparing css and csstree you can also consider the following projects:
go-parser - Golang parser written in PHP
spatial-navigation - Directional focus navigation with arrow keys
php-parser - :herb: NodeJS PHP Parser - extract AST or tokens
prettier - Prettier is an opinionated code formatter.
apca-w3 - The APCA version, to be licensed for use with guidelines: W3/AGWG.
format-css - Fast, small, zero-config library to format CSS using basic rules.