Simple utility that generates random hexadecimal colors.
npm i -S random-hex
var randomHex = require('random-hex');
randomHex.generate(); // #f92672
randomHex.generate(); // #f060ff
The generate
method can be called multiple times and will generate a random hex
color each time.
npm test
npm run cover
istanbul and coveralls are used to generate a code coverage report.
jshint is used to lint the code.
The code will be linted when running npm test
by means of the 'pretest' hook.