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: 4 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-22T21:22:51.000Z (about 5 years ago)
- Last Synced: 2025-03-10T08:04:21.833Z (4 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: 1
- 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.
[](https://github.com/feross/standard)
[](https://greenkeeper.io/)
[](https://travis-ci.org/JamesKyburz/fetch-lambda)
[](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)