css-tree
npmv3.2.1A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations
Overview
css-tree is an npm package that a tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations. The latest version is 3.2.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of css-tree.
Dependencies
Runtime (2)
Dev (7)
Used by
Popular packages that depend on css-tree.
Strict TypeScript and Flow types for style based on MDN data
A JavaScript implementation of many web standards
Calculate specificity of a CSS Selector
CSS syntax patches for CSS tree
A CSS selector engine.
Alternatives to css-tree
Indent-based CSS syntax for PostCSS
An Esprima-compatible JavaScript parser built on Acorn
A modern CSS parser and stringifier with TypeScript support
Tool for transforming styles with JS plugins
Leaner CSS
Robust, expressive, and feature-rich CSS superset
CSS syntax patches for CSS tree
WebAssembly binary format parser
the complete solution for node.js command-line programs
TypeScript-first schema declaration and validation library with static type inference
A JavaScript parser
JavaScript parser and stringifier for YAML
Frequently installed together
Prettier is an opinionated code formatter
The semantic version parser used by npm.
An AST-based pattern checker for JavaScript.
Check whether a given string matches the `PotentialCustomElementName` production as defined in the HTML Standard.
TypeScript definitions for node
🔎 A simple, tiny and lightweight benchmarking library!
A JavaScript implementation of many web standards
the complete solution for node.js command-line programs
An extremely fast JavaScript and CSS bundler and minifier.
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
Delightful JavaScript Testing.
Minimal and efficient cross-platform file watching library
Version history
| Version | Published | License |
|---|---|---|
| 3.2.1latest | 4 months ago | MIT |
| 3.2.0 | 4 months ago | MIT |
| 3.1.0 | 1 year ago | MIT |
| 3.0.1 | 1 year ago | MIT |
| 3.0.0 | 1 year ago | MIT |
| 2.3.1 | 3 years ago | MIT |
| 2.3.0 | 3 years ago | MIT |
| 2.2.1 | 3 years ago | MIT |
| 2.2.0 | 3 years ago | MIT |
| 2.1.0 | 4 years ago | MIT |
| 2.0.4 | 4 years ago | MIT |
| 2.0.3 | 4 years ago | MIT |
| 2.0.2 | 4 years ago | MIT |
| 2.0.1 | 4 years ago | MIT |
| 2.0.0 | 4 years ago | MIT |
| 1.1.3 | 5 years ago | MIT |
| 1.1.2 | 5 years ago | MIT |
| 1.1.1 | 5 years ago | MIT |
| 1.1.0 | 5 years ago | MIT |
| 1.0.1 | 5 years ago | MIT |
Frequently asked questions
How do I install css-tree?
Run `npm install css-tree` to add css-tree to your npm project.
What license is css-tree released under?
css-tree is distributed under the MIT license.
How popular is css-tree?
css-tree has approximately 0 downloads per week and 3 known dependent packages.