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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.60latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

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