Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

local-lambda-invoker

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

local-lambda-invoker

Invoker of the AWS lambda function downloded to a local environment

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

AWS

FAQs

Package last updated on 02 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts