servie-lambda
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

Servie Lambda

NPM version NPM downloads Build status Test coverage

Servie transport for AWS lambda proxy.

Installation

npm install servie-lambda --save

Usage

Wrap a standard Servie middleware function in createHandler to return a AWS Lambda handler.

import { createHandler } from "servie-lambda";
import { compose } from "throwback";
import { get } from "servie-route";
 
export const handler = createHandler(
  compose([get("/test", req => new Response("hello world"))])
);

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

Apache 2.0

Package Sidebar

Install

npm i servie-lambda

Weekly Downloads

0

Version

2.1.1

License

Apache-2.0

Unpacked Size

24.2 kB

Total Files

9

Last publish

Collaborators

  • blakeembrey