# @ruivalim/lambda-helper

> Simple typescript project boilerplate

Latest version **0.0.27** (published 2020-12-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ruivalim/lambda-helper
pnpm add @ruivalim/lambda-helper
yarn add @ruivalim/lambda-helper
bun add @ruivalim/lambda-helper
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.27 |
| Published | 2020-12-13 |
| First published | 2020-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 24.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rui Valim Jr |
| Maintainers | ruivalim |

## Links

- npm: https://www.npmjs.com/package/@ruivalim/lambda-helper
- Repository: https://github.com/Ruivalim/lambda-helper
- npm.io page: https://npm.io/package/@ruivalim/lambda-helper

## Recent versions

- 0.0.27 (latest) — 2020-12-13
- 0.0.26 — 2020-10-28
- 0.0.25 — 2020-10-28
- 0.0.24 — 2020-10-22
- 0.0.23 — 2020-10-22
- 0.0.22 — 2020-10-22
- 0.0.21 — 2020-10-22
- 0.0.20 — 2020-10-20
- 0.0.19 — 2020-10-20
- 0.0.18 — 2020-10-20
- 0.0.16 — 2020-10-20
- 0.0.15 — 2020-10-18
- 0.0.14 — 2020-10-18
- 0.0.13 — 2020-10-18
- 0.0.12 — 2020-10-17
- … 8 more at https://npm.io/package/@ruivalim/lambda-helper/versions

## README

# Lambda Helper

It's a small library to help build lambda functions on AWS

## Installation
```bash
yarn add @ruivalim/lambda-helper
```

## Usage

```javascript
import {dynamo} from "@ruivalim/lambda-helper"

const ddb = dynamo({tableName: "My-table"});

ddb.get({ ID: "record-id").then(data => {
    console.log(data);
});

const saveUser = async(data) => {
    await ddb.save(data);
}

saveUser({
    ID: "record-id",
    name: "Rui Valim",
    email: "r.valim.junior@gmail.com",
    admin: true
});

ddb.delete({ID: "record-id}).then(data => {
    console.log(data);
}).catch(err => {
    console.log(err);
});

ddb.scan({ admin: true }).then(data => {
    console.log(data);
}).catch(err => {
    console.log(err);
});


ddb.update({ id: "record-id" }, { name: "Rui Valim Jr" }).then(data => {
    console.log(data);
}).catch(err => {
    console.log(err);
});

```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://github.com/Ruivalim/lambda-helper/blob/master/LICENSE)

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