local-lambda-invoker

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i local-lambda-invoker

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.69 kB

Total Files

6

Last publish

Collaborators

  • vzg03566