Skip to content

ChrisCarleton/hex-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hex Generator

A simple random hexadecimal generator.

Installation

npm install hex-generator

Usage

var hexgen = require('hex-generator');

var hex = hexgen(128);
console.log(hex); // Outputs something like: 128d93ec4e4c737bbeae10c35db6becb

API

hexgen(bits)

The bits parameter indicates how many bits should be generated and expressed as hexadecimal. If bits is omitted the default will be 64 bits (16 hex characters).

About

A simple random hexadecimal generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published