color-convert
npmv3.1.3TypeScriptPlain 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.
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 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; // 1color-convert 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-convertthis page | 342.8M | 1 | MIT | 9 months ago |
| color-string | 0 | 1 | MIT | 5 days ago |
| color | 51.9M | 3 | MIT | 6 days ago |
| bytes | 0 | 3 | MIT | 5 days ago |
| rgb2hex | 0 | 1 | MIT | 5 days ago |
| colorette | 0 | 2 | MIT | 6 days ago |
Dependencies
Declared by color-convert v3.1.3. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (4)
Used by
Popular packages that depend on color-convert.
Relationship graph
Dependencies (left) and dependents (right) of color-convert.
Frequently installed together
Release history
5 releases in the last two years, typically about 63 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.1.3latest | 9 months ago | 47 KB | MIT |
| 3.1.2 | 1 year ago | 47 KB | MIT |
| 3.1.0 | 1 year ago | 47 KB | MIT |
| 3.0.1 | 1 year ago | 44 KB | MIT |
| 3.0.0 | 1 year ago | 32 KB | MIT |
| 2.0.1 | 7 years ago | 27 KB | MIT |
| 2.0.0 | 7 years ago | 27 KB | MIT |
| 1.9.3 | 8 years ago | 26 KB | MIT |
| 1.9.2 | 8 years ago | 26 KB | MIT |
| 1.9.1 | 8 years ago | — | MIT |
| 1.9.0 | 9 years ago | — | MIT |
| 1.8.2 | 9 years ago | — | MIT |
| 1.8.1 | 9 years ago | — | MIT |
| 1.8.0 | 9 years ago | — | MIT |
| 1.7.0 | 9 years ago | — | MIT |
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
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.