convert-colorcodes

1.0.2 • Public • Published

Color Code Conversions

npm install

npm i convert-colorcodes
const {hexToHSL , hexToRGB, hexToCMYK} = require('convert-colorcodes')

console.log(hexToRGB('#1e1e1e'))
console.log(hexToHSL('#1e1e1e'))
console.log(hexToCMYK('#1e1e1e'))

// rgb(30,30,30)
// hsl(0,0%,12%)
// cmyk(0,0,0,0.8823529411764706)

Package Sidebar

Install

npm i convert-colorcodes

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.44 kB

Total Files

3

Last publish

Collaborators

  • deepcodes