# @fly/v8env

> Open source Edge Application runtime

Latest version **0.55.2** (published 2020-04-15) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @fly/v8env
pnpm add @fly/v8env
yarn add @fly/v8env
bun add @fly/v8env
```

## Health

**Score 35/100 (D)** — status: abandoned.

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.55.2 |
| Published | 2020-04-15 |
| First published | 2018-09-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 988 |
| Maintainers | jeromegn, michaeldwan, mrkurt |

## Links

- npm: https://www.npmjs.com/package/@fly/v8env
- Repository: https://github.com/superfly/fly
- Homepage: https://github.com/superfly/fly#readme
- Issues: https://github.com/superfly/fly/issues
- npm.io page: https://npm.io/package/@fly/v8env

## Recent versions

- 0.55.2 (latest) — 2020-04-15
- 0.55.0-pre.1 (pre) — 2020-02-10
- 0.55.0 — 2020-04-14
- 0.55.0-pre.0 — 2019-11-21
- 0.54.0 — 2019-05-21
- 0.54.0-pre.0 — 2019-05-16
- 0.53.0 — 2019-05-15
- 0.53.0-pre.1 — 2019-05-10
- 0.53.0-pre.0 — 2019-05-07
- 0.51.0 — 2019-04-12
- 0.50.2-pre.2 — 2019-04-12
- 0.50.1-pre.0 — 2019-04-11
- 0.50.0 — 2019-04-10
- 0.49.0 — 2019-04-04
- 0.49.0-pre.0 — 2019-04-04
- … 37 more at https://npm.io/package/@fly/v8env/versions

## README

# Fly Standard Library

These are API docs for the [Fly runtime](https://github.com/superfly/fly) JavaScript environment. The runtime implements portions of standard web APIs (like `fetch`), and additional APIs for doing Fly specific operations.

## Basic app

```javascript
fly.http.respondWith(function(request){
  return new Response("Hello! We support whirled peas.", { status: 200})
})
// if you'd prefer to be service worker compatibility, this is also supported:
// around addEventListener('fetch', function(event){})
```

## `fetch` function

The [`fetch`](modules/fetch.html) function is available within Fly apps for making HTTP requests.

```javascript
fly.http.respondWith(async function(req){
  const resp = await fetch("http://example.com")
  resp.headers.set("fly-ified", "darn tootin'")
  return resp
})
```

It's an enhanced version of the standard Web API [`fetch` function](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch).

## Primary APIs

* [`fly/cache`](https://fly.io/docs/apps/api/modules/fly_cache.html): a regional, in memory cache for low latency reads/writes
* [`fly/data`](https://fly.io/docs/apps/api/modules/fly_data.html): a global persistent key/value store for permanent data
* [`fly/image`](modules/fly_image.html): Image manipulation APIs
* [`fly/fetch`](https://fly.io/docs/apps/api/modules/fly_image.html): libraries for routing and proxying fetch requests

For more documentation, check out the Fly runtime API docs here: https://fly.io/docs/apps/api/index.html

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