color-type-convert

1.0.1 • Public • Published

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.

License

MIT

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i color-type-convert

      Weekly Downloads

      6

      Version

      1.0.1

      License

      MIT

      Unpacked Size

      5.1 kB

      Total Files

      4

      Last publish

      Collaborators

      • javad_m