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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

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