@chintan93/hexrgbconversion

Code Challenge 6 - Course - Complete Web Developer in 2018

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@chintan93/hexrgbconversion
Minified + gzip package size for @chintan93/hexrgbconversion in KB

Readme

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.