npm.io
1.0.3 • Published 4 years ago

hex-gen

Licence
ISC
Version
1.0.3
Deps
1
Size
1 kB
Vulns
0
Weekly
0
Stars
3

Random Color Generator

  • Generates and returns random color hex code.
npm i hex-gen

Basic usage

const { randomColor } = require('hex-gen') 

const myColor = randomColor()

console.log(myColor)

With log

const { randomColor } = require('hex-gen') 

randomColor(true)
//Automatically logs to console, default 'false'.

Keywords