Code Challenge 6 - Course - Complete Web Developer in 2018


1.0.14 years ago4 years agoMinified + gzip package size for @chintan93/hexrgbconversion in KB


RGB-HEX Conversion

Script that can convert RGB values into a HEX code, and vice versa.

To install, run:

npm install @chintan93/hexrgbconversion

A sample usage:

const rgbHexConversion = require('@chintan93/hexrgbconversion')

let rgb = rgbHexConversion("#ea2291")           // [ 234, 34, 145 ]
let hex = rgbHexConversion(234, 34, 145)     // #ea2291

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.