postcss
npmv8.5.28TypeScriptTool for transforming styles with JS plugins
Safe to adopt
Yes — postcss scores well across adoption, maintenance, weight, supply chain, and licensing. 249.3M downloads per week and 7 known dependents. Last published 6 days ago. 33 releases in the last 2 years.
- AAdoption: grade A, Excellent.
249.3M downloads per week and 7 known dependents.
- AMaintenance: grade A, Excellent.
Last published 6 days ago. 33 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 3 transitive packages, about 370 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding postcss to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing postcss, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node ^10 || ^12 || >=14
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
postcss vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| postcssthis page | 249.3M | 7 | MIT | 6 days ago |
| less | 0 | 2 | Apache-2.0 | 1 day ago |
| @adobe/css-tools | 0 | 2 | MIT | 1 day ago |
| sugarss | 0 | 1 | MIT | 1 day ago |
| node-sassdeprecated | 888.4K | 0 | MIT | 1 day ago |
| @csstools/css-parser-algorithms | 0 | 3 | MIT | 1 day ago |
Dependencies
Declared by postcss v8.5.28. Runtime dependencies are installed with the package; dev dependencies are not.
Used by
Popular packages that depend on postcss.
Native-ESM powered web dev build tool
The React Framework
A CSS parser, transformer, and minifier written in Rust
Indent-based CSS syntax for PostCSS
A Metro config for running React Native projects with the Metro bundler
Minimizer plugin for webpack
@vue/compiler-sfc
Relationship graph
Dependencies (left) and dependents (right) of postcss.
Frequently installed together
A pure JavaScript implementation of Sass.
The Expo SDK
A CSS parser, transformer, and minifier written in Rust
Trace the original position through a source map
An extremely fast JavaScript and CSS bundler and minifier.
A library for obtaining browser versions with their maximum supported Baseline feature set and Widely Available status.
Remap sequential sourcemaps through transformations to point at the original source code
Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
A smaller version of caniuse-db, with only the essentials!
A JavaScript parser
React is a JavaScript library for building user interfaces.
React package for working with the DOM.
Release history
29 releases in the last two years, typically about 4 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 8.5.28latest | 6 days ago | 213 KB | MIT |
| 8.5.27 | 6 days ago | 213 KB | MIT |
| 8.5.26 | 1 month ago | 213 KB | MIT |
| 8.5.25 | 1 month ago | 212 KB | MIT |
| 8.5.24 | 1 month ago | 211 KB | MIT |
| 8.5.23 | 1 month ago | 211 KB | MIT |
| 8.5.22 | 1 month ago | 211 KB | MIT |
| 8.5.21 | 1 month ago | 211 KB | MIT |
| 8.5.20 | 1 month ago | 210 KB | MIT |
| 8.5.19 | 1 month ago | 210 KB | MIT |
| 8.5.18 | 1 month ago | 209 KB | MIT |
| 8.5.17 | 2 months ago | 209 KB | MIT |
| 8.5.16 | 2 months ago | 202 KB | MIT |
| 8.5.15 | 3 months ago | 201 KB | MIT |
| 8.5.14 | 4 months ago | 200 KB | MIT |
Overview
postcss is an npm package that tool for transforming styles with JS plugins. It is extremely widely used, with about 249.3M downloads per week and 7 known dependents in the graph. The latest version is 8.5.28, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need tool for transforming styles with JS plugins and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (249.3M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use postcss?
Yes — postcss scores well across adoption, maintenance, weight, supply chain, and licensing. 249.3M downloads per week and 7 known dependents. Last published 6 days ago. 33 releases in the last 2 years.
How do I install postcss?
Run `npm install postcss` to add postcss to your npm project.
How many dependencies does postcss have?
postcss declares 3 direct dependencies and pulls in 3 packages in total once its runtime tree is resolved totalling about 370 KB on disk.
What license is postcss released under?
postcss is distributed under the MIT license. Its dependency tree also includes: BSD-3-Clause, ISC, MIT.
How popular is postcss?
postcss has approximately 249,285,720 downloads per week and 7 known dependent packages.
Is postcss still maintained?
The most recent release of postcss (v8.5.28) was published 6 days ago.
Does postcss run install scripts?
No. postcss does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.