Socket
Socket
Sign inDemoInstall

get-random-values-esm

Package Overview
Dependencies
5
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    get-random-values-esm

A wrapper that rebundles [`get-random-values`](https://www.npmjs.com/package/get-random-values) into ESM, so you can use it in your `vite`, `skypack`, or wherever you need ESM.


Version published
Weekly downloads
98K
decreased by-2.45%
Maintainers
1
Install size
83.3 kB
Created
Weekly downloads
 

Changelog

Source

1.0.2 (2024-02-14)

Bug Fixes

  • recursive call to getRandomValues (248e5a8)

Readme

Source

get-random-values-esm

A wrapper that rebundles get-random-values into ESM, so you can use it in your vite, skypack, or wherever you need ESM. Also adds support for node v15's WebCrypto support and TypeScript definitions.

Install

$ npm install get-random-values-esm

Usage

Same as before, but now with ESM imports:

import getRandomValues from 'get-random-values-esm'

console.log(getRandomValues(new Uint8Array(16)))

Keywords

FAQs

Last updated on 14 Feb 2024

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