Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crypto-randomuuid

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypto-randomuuid

Polyfill crypto.randomUUID

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2.6M
increased by1.19%
Maintainers
1
Weekly downloads
 
Created
Source

crypto-randomuuid

This is a polyfill for the crypto.randomUUID method in Node.js. It will use the built-in version, if present. There are plenty of other uuid modules, but this one aims to be as functionally identical as possible to the Node.js core function.

This uses a pure JavaScript replacement of the secureBuffer function using randomFillSync rather than the native version using OPENSSL_secure_malloc in Node.js core. This may have security implications, so I'd recommend against using this anywhere that cryptographically secure uuids are important.

Install

npm install crypto-randomuuid

Usage

https://nodejs.org/api/crypto.html#crypto_crypto_randomuuid_options

License

This is all copy/pasted from Node.js core, so see the license there: https://github.com/nodejs/node/blob/master/LICENSE

Keywords

FAQs

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc