local-lambda-invoker
v1.0.0
Published
Invoker of the AWS lambda function downloded to a local environment
Downloads
6
Readme
local-lambda-invoker
The LambdaTester class which this module exports can invoke a lambda function downloaded to the local environment even if it was an async lambda.
sample:
"use strict";
const LambdaTester = require("local-lambda-invoker");
const MyLambda = require("my-lambda/index.js");
const lambda = new LambdaTester(MyLambda);
(async function() {
let event = { .... };
let response = await lambda.invoke(event);
console.log(JSON.stringify(response));
}());
LICENSE
This software is released under the MIT License, see LICENSE