# lambdifying

> module to utils in lambda aws

Latest version **1.0.0** (published 2018-09-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install lambdifying
pnpm add lambdifying
yarn add lambdifying
bun add lambdifying
```

Provides the command `lambdifying`.

## 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-09-18 |
| First published | 2018-02-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jesus Cereceres |
| Maintainers | cereceres |
| Keywords | lambda, aws, invoke, utils |

## Links

- npm: https://www.npmjs.com/package/lambdifying
- Repository: https://github.com/big-math-solutions/node-lambda
- Homepage: https://github.com/big-math-solutions/node-lambda#readme
- Issues: https://github.com/big-math-solutions/node-lambda/issues
- npm.io page: https://npm.io/package/lambdifying

## Dependencies (2)

- [yargs](https://npm.io/package/yargs.md) ^11.0.0
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.188.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-09-18
- 0.0.3 — 2018-02-02
- 0.0.2 — 2018-02-02
- 0.0.1 — 2018-02-02

## README

# lambdifying: Lambda aws helper


# Invoke(name,Payload,LogType) -> Promise

The name must a string in format:

'FunctionName:Qualifier:InvocationType'

'FunctionName:Qualifier'

'FunctionName:InvocationType'

'FunctionName'


The default values to InvocationType is RequestResponse,
$LATEST to Qualifier and Tail to LogType.
## Usage

```js
const {invoke} = require('lambdifying')

invoke('lambdaName:prod:Event',{data:'is here'})
    .then((response) => {
        // response is the Payload parsed
    })
    .catch(error => {
        // error could be the error in request or LogResult if there is FunctionError
    })

invoke('lambdaName:prod',{data:'is here with RequestResponse as InvocationType'})
    .then((response) => {
        // response is the Payload parsed
    })
    .catch(error => {
        // error could be the error in request or LogResult if there is FunctionError
    })

invoke('lambdaName',{data:'is here with RequestResponse as InvocationType and Qualifier as $LATEST'})
    .then((response) => {
        // response is the Payload parsed
    })
    .catch(error => {
        // error could be the error in request or LogResult if there is FunctionError
    })

```

# Client

Installing:

```bash
npm install -g lambdifying
```

Using:

```bash
lambdifying --help
Options:
  --version             Show version number                            [boolean]
  --help                Show help                                      [boolean]
  -i, --invoke          function to invoke in format:
                        FunctionName:Qualifier:InvocationType
                        FunctionName:Qualifier
                        FunctionName:InvocationType
                        FunctionName
                                                                        [string]
  -p, --payload         Payload to send                                 [string]
  --pf, --payload-from  File from where get payload                     [string]
  --lt, --logtype                                     [string] [default: "Tail"]
```

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