Socket
Socket
Sign inDemoInstall

crypto-randomuuid

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    crypto-randomuuid

Polyfill crypto.randomUUID


Version published
Weekly downloads
1.6M
decreased by-18.84%
Maintainers
1
Install size
10.9 kB
Created
Weekly downloads
 

Readme

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

Last updated on 09 Aug 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc