The random-palette package will help developers to generate random color palettes for Such Packages
The random-palette Package is available on the npm
Run the following command to install the package
npm i random-palette
// 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]
*/
> random-palette@1.0.0 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)