# 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.

Latest version **1.0.2** (published 2024-02-14) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install get-random-values-esm
pnpm add get-random-values-esm
yarn add get-random-values-esm
bun add get-random-values-esm
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2024-02-14 |
| First published | 2022-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sanity.io |
| Maintainers | stipsan |
| Keywords | crypto, get-random-values, getRandomValues, webcrypto |

## Links

- npm: https://www.npmjs.com/package/get-random-values-esm
- Repository: https://github.com/sanity-io/get-random-values-esm
- Homepage: https://github.com/sanity-io/get-random-values-esm#readme
- Issues: https://github.com/sanity-io/get-random-values-esm/issues
- npm.io page: https://npm.io/package/get-random-values-esm

## Dependencies (1)

- [get-random-values](https://npm.io/package/get-random-values.md) ^1.2.2

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2024-02-14
- 1.0.1 — 2024-02-14
- 1.0.0 — 2022-06-08
- 0.6.0 — 2022-06-08
- 0.5.0 — 2022-06-08
- 0.4.0 — 2022-06-08
- 0.3.1 — 2022-06-08
- 0.3.0 — 2022-06-08
- 0.2.0 — 2022-06-08
- 0.1.0 — 2022-06-08

## README

# 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.
Also adds support for [node v15's WebCrypto support](https://nodejs.org/docs/latest-v15.x/api/webcrypto.html#webcrypto_crypto_getrandomvalues_typedarray) and TypeScript definitions.

## Install

```bash
$ npm install get-random-values-esm
```

## Usage

Same as [before](https://github.com/auth0/node-jsonwebtoken/blob/master/README.md#usage), but now with ESM imports:

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

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

---
_Source: https://npm.io/package/get-random-values-esm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
