Socket
Book a DemoInstallSign in
Socket

random-hex-code-gen

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-hex-code-gen

Simple utility that generates random hexadecimal colors.

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

random-hex-code

Simple utility that generates random hexadecimal colors.

NPM Version Build Status Code Status

install

npm i -S random-hex-code

usage

var randomHex = require('random-hex-code');

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.

Keywords

random

FAQs

Package last updated on 20 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts