</>PackageGraphPackageGraph

color-convert

npmv3.1.3TypeScript

Plain color conversion functions

Safe to adopt

Yes — color-convert scores well across adoption, maintenance, weight, supply chain, and licensing. 342.8M downloads per week and 1 known dependents. Last published 299 days ago. 5 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    342.8M downloads per week and 1 known dependents.

  • BMaintenance: grade B, Good.

    Last published 299 days ago. 5 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 53 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 color-convert to a project.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

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

53 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

Every license you inherit by installing color-convert, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=14.6
Module format
ESM only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the color-convert README.

import convert from 'color-convert';

convert.rgb.hsl(140, 200, 100);             // [96, 48, 59]
convert.keyword.rgb('blue');                // [0, 0, 255]

const rgbChannels = convert.rgb.channels;     // 3
const cmykChannels = convert.cmyk.channels;   // 4
const ansiChannels = convert.ansi16.channels; // 1

color-convert 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-convertthis page342.8M1MIT9 months ago
color-string01MIT5 days ago
color51.9M3MIT6 days ago
bytes03MIT5 days ago
rgb2hex01MIT5 days ago
colorette02MIT6 days ago

Dependencies

Declared by color-convert v3.1.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (4)

chalk ^5.2.0jimp ^0.22.8tsd ^0.28.1xo ^0.54.2

Used by

Popular packages that depend on color-convert.

Relationship graph

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

color-namecolorcolor-convert
color-convert dependencies dependents

Frequently installed together

Release history

5 releases in the last two years, typically about 63 days apart.

Recent versions of color-convert
VersionPublishedSizeLicense
3.1.3latest9 months ago47 KBMIT
3.1.21 year ago47 KBMIT
3.1.01 year ago47 KBMIT
3.0.11 year ago44 KBMIT
3.0.01 year ago32 KBMIT
2.0.17 years ago27 KBMIT
2.0.07 years ago27 KBMIT
1.9.38 years ago26 KBMIT
1.9.28 years ago26 KBMIT
1.9.18 years agoMIT
1.9.09 years agoMIT
1.8.29 years agoMIT
1.8.19 years agoMIT
1.8.09 years agoMIT
1.7.09 years agoMIT

Overview

color-convert is an npm package that plain color conversion functions. It is extremely widely used, with about 342.8M downloads per week and 1 known dependents in the graph. The latest version is 3.1.3, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need plain color conversion functions 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 (342.8M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use color-convert?

Yes — color-convert scores well across adoption, maintenance, weight, supply chain, and licensing. 342.8M downloads per week and 1 known dependents. Last published 299 days ago. 5 releases in the last 2 years.

How do I install color-convert?

Run `npm install color-convert` to add color-convert to your npm project.

How many dependencies does color-convert have?

color-convert declares 5 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 53 KB on disk.

What license is color-convert released under?

color-convert is distributed under the MIT license.

How popular is color-convert?

color-convert has approximately 342,829,902 downloads per week and 1 known dependent packages.

Is color-convert still maintained?

The most recent release of color-convert (v3.1.3) was published 9 months ago.

Does color-convert run install scripts?

No. color-convert does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.