1.0.7 • Published 4 years ago
randomize-hex v1.0.7
randomize-hex
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