color-string
npmv2.1.4TypeScriptParser and generator for CSS color strings
Overview
color-string is an npm package that parser and generator for CSS color strings. It is extremely widely used, with about 49.7M downloads per week and 1 known dependents in the graph. The latest version is 2.1.4, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need parser and generator for CSS color strings 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 (49.7M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of color-string.
Dependencies
Runtime (1)
Dev (2)
Used by
Popular packages that depend on color-string.
Alternatives to color-string
Plain color conversion functions
Color conversion and manipulation with CSS string support
lightweight rgb/rgba to hex parser
Parse CSS color values
A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations
🌈Easily set your terminal text color & styles.
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Full CSS support for JSX without compromises
A pure JavaScript implementation of Sass.
Calculate specificity of a CSS Selector
Color normalization for React Native.
Minimizer plugin for webpack
Frequently installed together
Version history
| Version | Published | License |
|---|---|---|
| 2.1.4latest | 8 months ago | MIT |
| 2.1.3 | 8 months ago | MIT |
| 2.1.2 | 10 months ago | MIT |
| 2.1.0 | 10 months ago | MIT |
| 2.0.1 | 1 year ago | MIT |
| 2.0.0 | 1 year ago | MIT |
| 1.9.1 | 4 years ago | MIT |
| 1.9.0 | 4 years ago | MIT |
| 1.8.2 | 4 years ago | MIT |
| 1.8.1 | 4 years ago | MIT |
| 1.8.0 | 4 years ago | MIT |
| 1.7.4 | 4 years ago | MIT |
| 1.7.3 | 4 years ago | MIT |
| 1.7.2 | 4 years ago | MIT |
| 1.7.1 | 4 years ago | MIT |
| 1.7.0 | 4 years ago | MIT |
| 1.6.0 | 5 years ago | MIT |
| 1.5.5 | 5 years ago | MIT |
| 1.5.4 | 5 years ago | MIT |
| 1.5.3 | 8 years ago | MIT |
Maintainers
Frequently asked questions
How do I install color-string?
Run `npm install color-string` to add color-string to your npm project.
What license is color-string released under?
color-string is distributed under the MIT license.
How popular is color-string?
color-string has approximately 49,677,753 downloads per week and 1 known dependent packages.