This package has been deprecated

Author message:

unmaintained, this is dangerous

koa-env

2.0.0 • Public • Published

koa-env

Koa middleware for getting and setting environment variables.


Installation

npm i koa-env

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i koa-env

Weekly Downloads

1

Version

2.0.0

License

LGPL-3.0

Unpacked Size

14.7 kB

Total Files

12

Last publish

Collaborators

  • zacanger