Skip to content

jordanliu/randomize-hex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

randomize-hex CI

Generate random hex color codes.

Quickstart

npm install randomize-hex

Once installed import the package.

ECMAScript Syntax:

import { randomHex } from "randomize-hex";
randomHex(); //returns a hex color code

CommonJS Syntax:

const { randomHex } = require("randomize-hex");
randomHex(); //returns a hex color code

randomHex() - returns a random hex color code in the format of #ffffff