hex-gen

1.0.3 • Public • Published

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'.

Package Sidebar

Install

npm i hex-gen

Weekly Downloads

8

Version

1.0.3

License

ISC

Unpacked Size

1.43 kB

Total Files

3

Last publish

Collaborators

  • n44