hexid
v1.1.1
Published
Generates random hex string
Downloads
2
Maintainers
Readme
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