🚀 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

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
14
100%
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); // 16ddbb8603db565534487b9b9ce083a8b04912525d9bee904fd944d600c271e0

Keywords

hex

FAQs

Package last updated on 26 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