rgb-to-hex-converter

1.0.6 • Public • Published

rgb-to-hex-converter

Converts an rgb color to hex color

Usage

const convert = require('rgb-to-hex-converter').convertToHex;
let hex = convert(255,255,255); //convert(r,g,b)
if(hex){
    console.log(hex)
}else{
    console.log('Wrong color format!')
};

Installation

npm i rgb-to-hex-converter

Readme

Keywords

Package Sidebar

Install

npm i rgb-to-hex-converter

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

6.45 kB

Total Files

7

Last publish

Collaborators

  • matteobax