Skip to content

uuidjs/randomUUID

Folders and files

NameName
Last commit message
Last commit date
Mar 14, 2021
Mar 14, 2021
Mar 14, 2021
Mar 14, 2021
Mar 14, 2021
Feb 27, 2021
Mar 14, 2021
Mar 14, 2021
Apr 18, 2021
Mar 14, 2021
Mar 14, 2021
Dec 16, 2022
Apr 18, 2021
Mar 14, 2021
Apr 18, 2021

Repository files navigation

randomUUID

Polyfill for the crypto.randomUUID() method as proposed in the WICG randomUUID specification and 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.

About

Polyfill for randomUUID as being standardized in https://github.com/WICG/uuid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published