color-codes-conversor

1.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i color-codes-conversor

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

4.7 kB

Total Files

4

Last publish

Collaborators

  • jose-aguayo