postcss-modules 4.2.1
PostCSS plugin to use CSS Modules everywhere
postcss-modules@4.2.1 was published on 2021-07-23. Its manifest declares 8 runtime dependencies and 1 peer requirement. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
All postcss-modules versions · Permanent reference to 4.2.1 · Latest release
Package specifications
| Version | 4.2.1 |
|---|---|
| License declaration | MIT |
| Published | 2021-07-23T11:19:04.182Z |
| Node.js requirement | Not declared |
| Type declarations | Bundled declarations |
| Runtime dependency count | 8 |
| Peer requirement count | 1 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 30.50 KiB |
| Published file count | 11 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | build/index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 18 |
| Repository stars | 1624 |
| Repository forks | 88 |
Install postcss-modules 4.2.1
npm install postcss-modules@4.2.1 pnpm add postcss-modules@4.2.1 yarn add postcss-modules@4.2.1
Runtime dependencies
- string-hash ^1.1.1
- generic-names ^2.0.1
- lodash.camelcase ^4.3.0
- icss-replace-symbols ^1.1.0
- postcss-modules-scope ^3.0.0
- postcss-modules-values ^4.0.0
- postcss-modules-extract-imports ^3.0.0
- postcss-modules-local-by-default ^4.0.0
Peer requirements
- postcss ^8.0.0
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- big.js@5.2.2 — indirect
- cssesc@3.0.0 — indirect
- emojis-list@3.0.0 — indirect
- generic-names@2.0.1 — direct
- icss-replace-symbols@1.1.0 — direct
- icss-utils@5.1.0 — indirect
- json5@1.0.2 — indirect
- loader-utils@1.4.2 — indirect
- lodash.camelcase@4.3.0 — direct
- minimist@1.2.8 — indirect
- postcss-modules-extract-imports@3.1.0 — direct
- postcss-modules-local-by-default@4.2.0 — direct
- postcss-modules-scope@3.2.1 — direct
- postcss-modules-values@4.0.0 — direct
- postcss-selector-parser@7.1.7 — indirect
- postcss-value-parser@4.2.0 — indirect
- string-hash@1.1.3 — direct
- util-deprecate@1.0.2 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
|---|---|
| Code-Review | 0/10 — Found 1/22 approved changesets -- score normalized to 0 |
| Maintained | 10/10 — 30 commit(s) and 15 issue activity found in the last 90 days -- score normalized to 10 |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 3/10 — dependency not pinned by hash detected -- score normalized to 3 |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Security-Policy | 0/10 — security policy file not detected |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 10/10 — license file detected |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/postcss-modules/4.2.1 — retrieved 2026-10-29T12:56:37.744Z
- https://api.deps.dev/v3/projects/github.com%2Fcss-modules%2Fpostcss-modules — retrieved 2026-10-29T08:44:52.755Z
- https://api.deps.dev/v3/systems/npm/packages/postcss-modules/versions/4.2.1 — retrieved 2026-10-29T12:56:38.305Z
- https://api.deps.dev/v3/systems/npm/packages/postcss-modules/versions/4.2.1:dependencies — retrieved 2026-10-29T12:56:38.324Z