Skip to content

danillouz/random-hex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-hex

Simple utility that generates random hexadecimal colors.

NPM Version Build Status Code Status

install

npm i -S random-hex

usage

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.

testing

npm test

code coverage

npm run cover

istanbul and coveralls are used to generate a code coverage report.

linting

jshint is used to lint the code.

The code will be linted when running npm test by means of the 'pretest' hook.

About

Simple utility that generates random hexadecimal colors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published