Skip to content

JamesKyburz/fetch-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Greenkeeper badge build status downloads

usage

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