1.0.3 • Published 2 years ago

color-codes-conversor v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

color-codes-conversor

Conversion from hex format to RGB format and vice versa

Install

npm install color-codes-conversor

Usage

const colorCodesConversor = require('color-codes-conversor')

let RBGValue = colorCodesConversor.hexToRGB('#E74C3C')

console.log(RBGValue)

//Prints an array with the RGB format [231, 76, 60]

let hexValue = colorCodesConversor.RGBToHex([231, 76, 60])

console.log(hexValue)

//Prints a string with the hex format #e74c3c