random-palette
v2.0.0
Published
Simple Random Color palette Generator
Downloads
6
Maintainers
Readme
Introduction
The random-palette package will help developers to generate random color palettes for Such Packages
Installation
The random-palette Package is available on the npm
Run the following command to install the package
npm i random-palette
Usage
// Install the random palette package and import it
const paletteGenerator = require("random-palette");
// Usage
const palettes = paletteGenerator(2);
console.log(palettes);
/**
* Output Should be
*
* [#******, #******] stars would be random integer or chars..
* in my case the output is [#29FAB1, #39EAA1]
*/
Test
> [email protected] test
> mocha --full-trace
generator
✔ should not work when the amount is not a number
✔ should return a array of palettes when the amount is number
2 passing (26ms)