# edge-runtime

> Run any Edge Function from CLI or Node.js module.

Latest version **4.0.1** (published 2024-12-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install edge-runtime
pnpm add edge-runtime
yarn add edge-runtime
bun add edge-runtime
```

Provides the command `edge-runtime`.

## Health

**Score 45/100 (D)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 4.0.1 |
| Published | 2024-12-03 |
| First published | 2022-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=18 |
| Dependencies | 9 |
| Unpacked size | 62.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 915 |
| Maintainers | kikobeats |
| Keywords | edge, edge-runtime, functions, runtime, standard, web |

## Links

- npm: https://www.npmjs.com/package/edge-runtime
- Repository: https://github.com/vercel/edge-runtime
- Homepage: https://edge-runtime.vercel.app/packages/runtime
- Issues: https://github.com/vercel/edge-runtime/issues
- npm.io page: https://npm.io/package/edge-runtime

## Dependencies (9)

- [mri](https://npm.io/package/mri.md) 1.2.0
- [pretty-ms](https://npm.io/package/pretty-ms.md) 7.0.1
- [time-span](https://npm.io/package/time-span.md) 4.0.0
- [picocolors](https://npm.io/package/picocolors.md) 1.1.1
- [signal-exit](https://npm.io/package/signal-exit.md) 4.0.2
- [async-listen](https://npm.io/package/async-listen.md) 3.0.1
- [@edge-runtime/vm](https://npm.io/package/@edge-runtime/vm.md) 5.0.0
- [@edge-runtime/format](https://npm.io/package/@edge-runtime/format.md) 4.0.0
- [@edge-runtime/ponyfill](https://npm.io/package/@edge-runtime/ponyfill.md) 4.0.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 4.0.1 (latest) — 2024-12-03
- 2.3.0-beta.14 (beta) — 2023-05-29
- 4.0.0 — 2024-12-02
- 3.0.5 — 2024-11-06
- 3.0.4 — 2024-11-06
- 3.0.3 — 2024-09-03
- 3.0.2 — 2024-08-19
- 3.0.1 — 2024-07-15
- 3.0.0 — 2024-07-07
- 2.5.10 — 2024-05-02
- 2.5.9 — 2024-02-13
- 2.5.8 — 2024-01-23
- 2.5.7 — 2023-11-02
- 2.5.6 — 2023-10-24
- 2.5.5 — 2023-10-17
- … 104 more at https://npm.io/package/edge-runtime/versions

## README

<div align="center">
  <br>
  <img src="https://user-images.githubusercontent.com/2096101/235130063-e561514e-1f66-4ff6-9034-70dbf7ca3260.png#gh-dark-mode-only">
  <img src="https://user-images.githubusercontent.com/2096101/235127419-ac6fe609-d0cd-4339-a593-c48305a83823.png#gh-light-mode-only">
  <br>
  <br>
  <p align="center"><strong>edge-runtime</strong>: Run any Edge Function from CLI or Node.js module.</p>
  <p align="center">See <a href="https://edge-runtime.vercel.app/packages/runtime" target='_blank' rel='noopener noreferrer'>edge-runtime</a> section in our <a href="https://edge-runtime.vercel.app/" target='_blank' rel='noopener noreferrer'>website</a> for more information.</p>
  <br>
</div>

## Install

Using npm:

```sh
npm install edge-runtime --save
```

or using yarn:

```sh
yarn add edge-runtime --dev
```

or using pnpm:

```sh
pnpm install edge-runtime --save
```

## License

**edge-runtime** © [Vercel](https://vercel.com), released under the [MPLv2](https://github.com/vercel/edge-runtime/blob/main/LICENSE.md) License.<br>
Authored and maintained by [Vercel](https://vercel.com) with help from [contributors](https://github.com/vercel/edge-runtime/contributors).

> [vercel.com](https://vercel.com) · GitHub [Vercel](https://github.com/vercel) · Twitter [@vercel](https://twitter.com/vercel)

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