</>PackageGraphPackageGraph

color-name

npmv2.1.1

A 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

6.2 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
color-namethis page02MIT16 hours ago
colorette71.6M2MIT2 hours ago
colorjs.io6.8M4MIT2 hours ago
rgb2hex01MIT2 hours ago
@react-native/normalize-colors03MIT2 hours ago
color03MIT2 hours ago

Used by

Popular packages that depend on color-name.

Relationship graph

Dependencies (left) and dependents (right) of color-name.

color-convertcolor-stringcolor-name
color-name dependencies dependents

Release history

3 releases in the last two years, typically about 252 days apart.

Recent versions of color-name
VersionPublishedSizeLicense
2.1.1latest16 hours ago6.2 KBMIT
2.1.08 months ago6.2 KBMIT
2.0.210 months ago6.1 KBMIT
2.0.03 years ago6.1 KBMIT
1.1.47 years ago6.5 KBMIT
1.1.39 years agoMIT
1.1.29 years agoMIT
1.1.110 years agoMIT
1.1.010 years agoMIT
1.0.110 years agoUnlicense
1.0.011 years agounlicensed
0.0.211 years agounlicensed
0.0.111 years agounlicensed

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

Keywords

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.