New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koa-serverless

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-serverless

A koajs distribution that focuses on:

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

koa-serverless

A koajs distribution that focuses on:

  • serverless deployment (AWS Gateway + Lambda)
  • standard nodejs deployment
  • default nested querystring support
  • default session middleware (koa-session)
  • default log middleware
  • default security header middleware (koa-helmet)
  • default cors middleware (kcors)
  • default body parser middlware (koa-bodyparser)

Install

npm install koa-serverless esm

Usage

Runs only with esm enabled.

index.js

require = require("esm")(module);
exports.handler = require("./run");

run.js

// drop in replacement for `koa`.
import App from "koa-serverless";

// import your koa middleware.
import serve from "koa-static";

// create your application.
var app = new App();

// add your own middleware
app.use(serve("./public"));

// run program as daemon or export handler for lambda.
exports = app.run(/* isLambdaOverride */);

FAQs

Package last updated on 15 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc