@jaycd598/generate-random-color
v1.0.0
Published
Generate random hex or rgb color
Downloads
2
Maintainers
Readme
Color Generator
A simple npm package for generating colors.
Installation
To install the Random Color Generator package, use the following command:
npm i @jaycd598/generate-random-color
Usage
const { generateRandomHexColor, generateRandomRGBColor } = require('@jaycd598/generate-random-color');
// Generate and display random colors
const hexColor = generateRandomHexColor();
const rgbColor = generateRandomRGBColor();
console.log('Random HEX color:', hexColor);
console.log('Random RGB color:', rgbColor);