koa-serverless
v0.6.0
Published
A koajs bundle including:
Downloads
16
Readme
koa-serverless
A koajs bundle including:
- Serverless Support (serverless-http)
- nested querystring support (qs)
- session management (koa-session)
- logging (koa-roarr)
- security headers (koa-helmet)
- body parser (koa-bodyparser)
Make koajs applications with minimal boilerplate.
Install
npm install koa-serverless
Example
// drop in replacement for `koa`.
var App = require("koa-serverless");
var app = new App();This will give you the basic mechanisms to
// add your own middleware
var serve = require("koa-static");
app.use(serve("./public"));
// run program as daemon or export handler for lambda.
exports.handler = app.run(/* isLambdaOverride */);