1.0.0 • Published 6 years ago

local-lambda-invoker v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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