color-type-convert
v1.0.1
Published
Color Type Convert Package
Downloads
21
Maintainers
Readme
Color Convert
Easy way to convert colors!
Why would you use it ?
color-type-convert is a color conversion library for JavaScript and node. It converts all ways between rgb, hsl, hsv, hex keywords:
Install
npm
npm install color-type-convert
yarn
yarn add color-type-convert
Usage:
Hex To RGB:
const { hex2rgb } = require("color-type-convert");
console.log(hex2rgb("#7288DA")); // Should output [114, 137, 218]
And More ...
Contribution
If there is a new model you would like to support, or want to add a direct conversion between two existing models, please send us a pull request.