Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/princevora/random-palette

Simple Random Color palette Generator
https://github.com/princevora/random-palette

api color nodejs npm pallete

Last synced: 5 days ago
JSON representation

Simple Random Color palette Generator

Awesome Lists containing this project

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](https://www.npmjs.com/package/random-palette)

Run the following command to install the package

```
npm i random-palette
```

## Usage
```js
// 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)
```