Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/princevora/random-palette
- Owner: princevora
- License: mit
- Created: 2024-06-27T04:43:20.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-01T03:44:08.000Z (5 months ago)
- Last Synced: 2024-10-06T10:03:46.071Z (about 1 month ago)
- Topics: api, color, nodejs, npm, pallete
- Language: TypeScript
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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-tracegenerator
✔ should not work when the amount is not a number
✔ should return a array of palettes when the amount is number2 passing (26ms)
```