colorrr

2.0.0 • Public • Published

colorrr

Library that generates random HEX and RGB colors.

~260 bytes gzipped

Use it like this:

var colorrr = require("colorrr");  

colorrr.getHex();  // "#28A0B9" (string)
colorrr.getRBG();  // [122, 116, 46] (array)

Or like this:

import { getHex, getRGB } from 'colorrr';

getHex(); // "#28A0B9" (string)
getRGB(); // [122, 116, 46] (array)

Package Sidebar

Install

npm i colorrr

Weekly Downloads

1

Version

2.0.0

License

ISC

Unpacked Size

2.73 kB

Total Files

4

Last publish

Collaborators

  • shakhbulatgaz