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