🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

hexid

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexid - npm Package Compare versions

Comparing version
1.0.2
to
1.0.3
+1
-1
package.json
{
"name": "hexid",
"version": "1.0.2",
"version": "1.0.3",
"description": "Generates random hex string",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,6 +7,10 @@ # hexid

- Defaults to 16 bytes
- Asynchronous. Returns a Promise
```
const hexid = require('hexid');
const hex = hexid(); // defaults to 16 bytes
const hex2 = hexid(32);
const hex = await hexid(); // dc56f142fb58017ad74504b11df02416
const hex2 = await hexid(32);
```