Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hex-gen

nandhu-4461ISC1.0.3

Generates and returns random color hex code.

hexcolor, hex-gen, randomcolor, color, colorgenerator, random

readme

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