Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serviejs/servie-lambda
Servie transport for AWS lambda proxy
https://github.com/serviejs/servie-lambda
aws-lambda aws-lambda-proxy http-server servie
Last synced: 8 days ago
JSON representation
Servie transport for AWS lambda proxy
- Host: GitHub
- URL: https://github.com/serviejs/servie-lambda
- Owner: serviejs
- License: other
- Created: 2017-01-20T22:47:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-12T07:31:10.000Z (about 1 year ago)
- Last Synced: 2024-09-16T17:15:31.690Z (4 months ago)
- Topics: aws-lambda, aws-lambda-proxy, http-server, servie
- Language: TypeScript
- Size: 228 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Servie Lambda
[![NPM version](https://img.shields.io/npm/v/servie-lambda.svg?style=flat)](https://npmjs.org/package/servie-lambda)
[![NPM downloads](https://img.shields.io/npm/dm/servie-lambda.svg?style=flat)](https://npmjs.org/package/servie-lambda)
[![Build status](https://img.shields.io/travis/serviejs/servie-lambda.svg?style=flat)](https://travis-ci.org/serviejs/servie-lambda)
[![Test coverage](https://img.shields.io/coveralls/serviejs/servie-lambda.svg?style=flat)](https://coveralls.io/r/serviejs/servie-lambda?branch=master)> 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.
```ts
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](https://github.com/Microsoft/TypeScript) and publishes the definitions directly to NPM.
## License
Apache 2.0