# local-lambda-invoker

> Invoker of the AWS lambda function downloded to a local environment

Latest version **1.0.0** (published 2018-07-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install local-lambda-invoker
pnpm add local-lambda-invoker
yarn add local-lambda-invoker
bun add local-lambda-invoker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-07-02 |
| First published | 2018-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Koji Takami |
| Maintainers | vzg03566 |
| Keywords | AWS, Lambda, Test |

## Links

- npm: https://www.npmjs.com/package/local-lambda-invoker
- Repository: https://github.com/takamin/local-lambda-invoker
- Homepage: https://github.com/takamin/local-lambda-invoker#readme
- Issues: https://github.com/takamin/local-lambda-invoker/issues
- npm.io page: https://npm.io/package/local-lambda-invoker

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-07-02

## 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:

```javascript
"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](LICENSE)

---
_Source: https://npm.io/package/local-lambda-invoker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
