crayola
Get Crayola Names and Color Codes
Currently 133 colors.
The Crayola Names and Color Codes are just a JSON file extracted from this article.
Install
$ npm install --save crayola
Usage
var crayola = ; ;//=> { hex: '#FEFE22', name: 'Laser Lemon', rgb: '(254, 254, 34)' } hex;//=> #FEFE22 name;//=> Laser Lemon rgb;//=> (254, 254, 34) crayolacolors;//=> [{ hex: '#FEFE22', name: 'Laser Lemon', rgb: '(254, 254, 34)'}, ...]
API
crayola()
Returns a random crayola color.
crayola().hex;
Returns a random crayola hex color code
crayola().name;
Returns a random crayola color name
crayola().rgb;
Returns a random crayola rgb color code
crayola.colors
Array with all the colors.
CLI
$ npm install --global crayola
$ crayola --help Example $ crayola.hex #FF5349 $ crayola.name Red Orange $ crayola.rgb
License
Entirely based on superb by Sindre Sorhus. MIT © André Ruffert