Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
fetch for lambda bypassing api gateway
- Host: GitHub
- URL: https://github.com/JamesKyburz/fetch-lambda
- Owner: JamesKyburz
- Created: 2018-08-21T11:41:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-22T21:22:51.000Z (over 4 years ago)
- Last Synced: 2024-10-20T01:07:11.551Z (3 months ago)
- Topics: api-gateway, aws, faas, fetch, http, lambda, node, proxy
- Language: JavaScript
- Homepage: https://github.com/jameskyburz/fetch-lambda
- Size: 1.04 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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 supportedThe 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)