Skip to content

alanfriedman/hexid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

hexid

Generates a random hex string of n bytes in Node.js.

Usage

  • Defaults to 16 bytes
  • Asynchronous. Returns a Promise
const hexid = require('hexid');

const hex = await hexid(); // dc56f142fb58017ad74504b11df02416
const hex2 = await hexid(32); // 16ddbb8603db565534487b9b9ce083a8b04912525d9bee904fd944d600c271e0