lightningcss
npmv1.32.0TypeScriptA CSS parser, transformer, and minifier written in Rust
Overview
lightningcss is an npm package that a CSS parser, transformer, and minifier written in Rust. It is extremely widely used, with about 92.2M downloads per week and 3 known dependents in the graph. The latest version is 1.32.0, released under the MPL-2.0 license.
Who should use it
Teams working in the npm ecosystem who need a CSS parser, transformer, and minifier written in Rust and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (92.2M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MPL-2.0).
Cons
- Large dependency tree (47 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of lightningcss.
Dependencies
Runtime (1)
Dev (35)
Used by
Popular packages that depend on lightningcss.
Frequently installed together
An extremely fast JavaScript and CSS bundler and minifier.
TypeScript definitions for node
Tool for transforming styles with JS plugins
Modify strings, generate sourcemaps
Remap sequential sourcemaps through transformations to point at the original source code
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol
Vite DevTools
A pure JavaScript implementation of Sass.
Trace the original position through a source map
A JavaScript parser
JavaScript parser and stringifier for YAML
Version history
| Version | Published | License |
|---|---|---|
| 1.32.0latest | 4 months ago | MPL-2.0 |
| 1.31.1 | 5 months ago | MPL-2.0 |
| 1.31.0 | 6 months ago | MPL-2.0 |
| 1.30.2 | 9 months ago | MPL-2.0 |
| 1.30.1 | 1 year ago | MPL-2.0 |
| 1.30.0 | 1 year ago | MPL-2.0 |
| 1.29.3 | 1 year ago | MPL-2.0 |
| 1.29.2 | 1 year ago | MPL-2.0 |
| 1.29.1 | 1 year ago | MPL-2.0 |
| 1.29.0 | 1 year ago | MPL-2.0 |
| 1.28.2 | 1 year ago | MPL-2.0 |
| 1.28.1 | 1 year ago | MPL-2.0 |
| 1.28.0 | 1 year ago | MPL-2.0 |
| 1.27.0 | 1 year ago | MPL-2.0 |
| 1.26.0 | 1 year ago | MPL-2.0 |
| 1.25.1 | 2 years ago | MPL-2.0 |
| 1.25.0 | 2 years ago | MPL-2.0 |
| 1.24.1 | 2 years ago | MPL-2.0 |
| 1.24.0 | 2 years ago | MPL-2.0 |
| 1.23.0 | 2 years ago | MPL-2.0 |
Maintainers
Funding
Frequently asked questions
How do I install lightningcss?
Run `npm install lightningcss` to add lightningcss to your npm project.
What license is lightningcss released under?
lightningcss is distributed under the MPL-2.0 license.
How popular is lightningcss?
lightningcss has approximately 92,186,962 downloads per week and 3 known dependent packages.