Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

randomuuid

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

randomuuid

Stub project for polyfilling `randomUUID` as proposed for standardization in https://github.com/WICG/uuid and implemented in Node.js v15.6.0 https://github.com/nodejs/node/pull/36729

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
1.4K
-42.04%
Maintainers
3
Weekly downloads
 
Created
Source

randomUUID

Polyfill for the crypto.randomUUID() method as proposed in the WICG randomUUID specification and recently implemented in Node.js v15.6.0.

Usage

Require module to polyfill crypto.randomUUID() method.

require('randomuuid')

NOTE: ESM importable version not yet available. See this issue for status.

API

See Node.js documentation for randomUUID() for API usage.

Note: The current implementation is based on Node.js lib/internal/crypto/random.js, however the intent of this project is to follow the spec, so node-specific details (such as the disableEntropyCache option) may or may not survive in future versions.

Keywords

uuid

FAQs

Package last updated on 18 Apr 2021

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