Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/JamesKyburz/fetch-lambda

fetch for lambda bypassing api gateway
https://github.com/JamesKyburz/fetch-lambda

api-gateway aws faas fetch http lambda node proxy

Last synced: about 2 months ago
JSON representation

fetch for lambda bypassing api gateway

Awesome Lists containing this project

README

        

# fetch-lambda

fetch for lambda bypassing api gateway

* only aws-lambda supported for now
* doesn't fully support fetch only the basics
* only a string body is supported

The payload sent and received from lambda assumes the api gateway format.

Only multiValueHeaders and multiValueQueryStringParameters are supported.

[![js-standard-style](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/feross/standard)
[![Greenkeeper badge](https://badges.greenkeeper.io/JamesKyburz/fetch-lambda.svg)](https://greenkeeper.io/)
[![build status](https://api.travis-ci.org/JamesKyburz/fetch-lambda.svg)](https://travis-ci.org/JamesKyburz/fetch-lambda)
[![downloads](https://img.shields.io/npm/dm/fetch-lambda.svg)](https://npmjs.org/package/fetch-lambda)

### usage

```javascript
const fetch = require('fetch-lambda')

fetch('aws-lambda://function:version/path', fetchOptions)

// if no :version is given then the latest lambda is invoked.
```

# license

[Apache License, Version 2.0](LICENSE)