rgb2hex
npmv0.2.5TypeScriptlightweight rgb/rgba to hex parser
Not recommended for new projects
No — rgb2hex should not be adopted for new projects. Last published 2095 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 2095 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 16 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 rgb2hex 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
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the rgb2hex README.
<script src="rgb2hex.js"></script>rgb2hex 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 |
|---|---|---|---|---|
| rgb2hexthis page | 0 | 1 | MIT | 5 years ago |
| color-convert | 299.6M | 1 | MIT | 1 day ago |
| set-cookie-parser | 50.2M | 2 | MIT | 1 day ago |
| bytes | 0 | 3 | MIT | 1 day ago |
| @csstools/css-color-parser | 0 | 2 | MIT | 1 day ago |
| color-string | 0 | 1 | MIT | 1 day ago |
Dependencies
Declared by rgb2hex v0.2.5. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (2)
Used by
Popular packages that depend on rgb2hex.
Relationship graph
Dependencies (left) and dependents (right) of rgb2hex.
Frequently installed together
A high-level API to control headless Chrome over the DevTools Protocol
Check if a value is a plain object
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
A simple list of CSS shorthand properties and which longhand properties they expand to
Create, read and edit .zip files with JavaScript http://stuartk.com/jszip
The lodash method `_.cloneDeep` exported as a module.
TypeScript definitions for @sinonjs/fake-timers
Utility package providing type information for a variety of WebdriverIO interfaces
A WDIO helper utility to provide several utility functions used across the project.
CSS value parser
React Element Selector Query (resq) - Query React components and children by selector (component name)
Polyfill for the URLPattern API
Release history
No releases in the last two years, typically about 13 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.2.5latest | 5 years ago | 16 KB | MIT |
| 0.2.4 | 5 years ago | 16 KB | MIT |
| 0.2.3 | 5 years ago | 16 KB | MIT |
| 0.2.2 | 5 years ago | 16 KB | MIT |
| 0.2.1 | 5 years ago | 16 KB | MIT |
| 0.2.0 | 6 years ago | 15 KB | MIT |
| 0.1.10 | 6 years ago | 16 KB | MIT |
| 0.1.9 | 8 years ago | 15 KB | MIT |
| 0.1.8 | 8 years ago | 15 KB | MIT |
| 0.1.7 | 8 years ago | 15 KB | MIT |
| 0.1.6 | 8 years ago | 15 KB | MIT |
| 0.1.5 | 8 years ago | 14 KB | MIT |
| 0.1.4 | 8 years ago | 14 KB | MIT |
| 0.1.3 | 8 years ago | 13 KB | MIT |
| 0.1.2 | 8 years ago | 12 KB | MIT |
Overview
rgb2hex is an npm package that lightweight rgb/rgba to hex parser. It has 1 known dependents in the graph. The latest version is 0.2.5, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need lightweight rgb/rgba to hex parser and value a focused 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
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
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 rgb2hex?
No — rgb2hex should not be adopted for new projects. Last published 2095 days ago.
How do I install rgb2hex?
Run `npm install rgb2hex` to add rgb2hex to your npm project.
What license is rgb2hex released under?
rgb2hex is distributed under the MIT license.
How popular is rgb2hex?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on rgb2hex.
Is rgb2hex still maintained?
The most recent release of rgb2hex (v0.2.5) was published 5 years ago.
Does rgb2hex run install scripts?
No. rgb2hex does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.