🚀 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

Generates random hex string

Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
1
-94.74%
Maintainers
1
Weekly downloads
 
Created
Source

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);

Keywords

hex

FAQs

Package last updated on 25 Nov 2019

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