# koa-env

> Koa middleware for getting and setting environment variables.

Latest version **2.0.0** (published 2019-08-31) · LGPL-3.0 license · 0 weekly downloads

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

## Install

```sh
npm install koa-env
pnpm add koa-env
yarn add koa-env
bun add koa-env
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2019-08-31 |
| First published | 2019-01-12 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 3 |
| Unpacked size | 14.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Zac Anger |
| Maintainers | zacanger |
| Keywords | env, koa |

## Links

- npm: https://www.npmjs.com/package/koa-env
- Repository: https://github.com/zacanger/koa-env
- Homepage: https://github.com/zacanger/koa-env#readme
- Issues: https://github.com/zacanger/koa-env/issues
- npm.io page: https://npm.io/package/koa-env

## Dependencies (3)

- [putenv](https://npm.io/package/putenv.md) 1.0.1
- [zeelib](https://npm.io/package/zeelib.md) 8.6.0
- [co-body](https://npm.io/package/co-body.md) 6.0.0

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2019-08-31
- 1.0.8 — 2019-08-31
- 1.0.7 — 2019-08-26
- 1.0.6 — 2019-07-21
- 1.0.5 — 2019-05-25
- 1.0.4 — 2019-05-19
- 1.0.3 — 2019-05-18
- 1.0.2 — 2019-04-09
- 1.0.1 — 2019-03-15
- 1.0.0 — 2019-01-19
- 0.1.0 — 2019-01-13
- 0.0.2 — 2019-01-12

## README

# koa-env

Koa middleware for getting and setting environment variables.

--------

## Installation

`npm i koa-env`

## Usage

```javascript
const Koa = require('koa')
const app = new Koa()

app.use(koaEnv('/env-route'))

app.listen(8080)
```

```
GET /env-route/foo // => process.env.foo
GET /env-route // => process.env
POST /env-route -d '{"foo": "bar"}' // => process.env.foo = bar
```

[LICENSE](./LICENSE.md)

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