color-name
npmv2.1.1A list of color names and its values
Safe to adopt
Yes — color-name scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published today. 3 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published today. 3 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 6.2 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 3 maintainers, and a contained dependency surface.
- 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 color-name 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.
Compatibility
- Node.js
- node >=12.20
- Module format
- ESM only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the color-name README.
import colors from 'color-name';
colors.red // [255,0,0]color-name 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 |
|---|---|---|---|---|
| color-namethis page | 0 | 2 | MIT | 16 hours ago |
| colorette | 71.6M | 2 | MIT | 2 hours ago |
| colorjs.io | 6.8M | 4 | MIT | 2 hours ago |
| rgb2hex | 0 | 1 | MIT | 2 hours ago |
| @react-native/normalize-colors | 0 | 3 | MIT | 2 hours ago |
| color | 0 | 3 | MIT | 2 hours ago |
Used by
Popular packages that depend on color-name.
Relationship graph
Dependencies (left) and dependents (right) of color-name.
Release history
3 releases in the last two years, typically about 252 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.1.1latest | 16 hours ago | 6.2 KB | MIT |
| 2.1.0 | 8 months ago | 6.2 KB | MIT |
| 2.0.2 | 10 months ago | 6.1 KB | MIT |
| 2.0.0 | 3 years ago | 6.1 KB | MIT |
| 1.1.4 | 7 years ago | 6.5 KB | MIT |
| 1.1.3 | 9 years ago | — | MIT |
| 1.1.2 | 9 years ago | — | MIT |
| 1.1.1 | 10 years ago | — | MIT |
| 1.1.0 | 10 years ago | — | MIT |
| 1.0.1 | 10 years ago | — | Unlicense |
| 1.0.0 | 11 years ago | — | unlicensed |
| 0.0.2 | 11 years ago | — | unlicensed |
| 0.0.1 | 11 years ago | — | unlicensed |
Overview
color-name is an npm package that a list of color names and its values. It has 2 known dependents in the graph. The latest version is 2.1.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a list of color names and its values 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).
- Zero runtime dependencies — minimal footprint.
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use color-name?
Yes — color-name scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published today. 3 releases in the last 2 years.
How do I install color-name?
Run `npm install color-name` to add color-name to your npm project.
What license is color-name released under?
color-name is distributed under the MIT license.
How popular is color-name?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on color-name.
Is color-name still maintained?
The most recent release of color-name (v2.1.1) was published 16 hours ago.
Does color-name run install scripts?
No. color-name does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.