1.0.0 • Published 4 years ago
anony-colors-js
Licence
ISC
Version
1.0.0
Deps
0
Size
45 kB
Vulns
0
Weekly
0
Color js properties
Using Node command-line
npm i colour-js
How to use
Reference
const Color = require('colour-js')
const color = new Color("#b9f2ff") //enter any hex code in parameter
color.getName() //get name of hex color code
color.toHexa() //convert to hex
color.toHsl() //convert to hsl
Directly without new keyword
const Color = require('colour-js')
Color.getNearestColor("#b9f2ff") //get shade of color name
Color.hexToRgb("#b9f2ff") //convert to hex