# node-aws-utils

> aws utils

Latest version **2.1.0** (published 2021-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-aws-utils
pnpm add node-aws-utils
yarn add node-aws-utils
bun add node-aws-utils
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2021-06-29 |
| First published | 2021-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Grigoriy Baranov |
| Maintainers | watchdg |
| Keywords | aws, utils |

## Links

- npm: https://www.npmjs.com/package/node-aws-utils
- Repository: https://github.com/WatchDG/node-aws-utils
- Homepage: https://github.com/WatchDG/node-aws-utils#readme
- Issues: https://github.com/WatchDG/node-aws-utils/issues
- npm.io page: https://npm.io/package/node-aws-utils

## Dependencies (1)

- [node-result](https://npm.io/package/node-result.md) ^12.0.2

## 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

- 2.1.0 (latest) — 2021-06-29
- 2.0.1 — 2021-04-18
- 2.0.0 — 2021-04-08
- 1.7.0 — 2021-04-08
- 1.6.0 — 2021-03-29
- 1.5.0 — 2021-01-17
- 1.4.0 — 2021-01-10
- 1.3.0 — 2021-01-10
- 1.2.0 — 2021-01-06
- 1.1.0 — 2021-01-06
- 1.0.0 — 2021-01-06

## README

# node-aws-utils

## install dependencies

```shell
yarn install
# or
npm install
```

## build

```shell
yarn run build
# or
npm run build
```

## Dynamo

### get item

```ts
import {DynamoDB} from "aws-sdk";
import {DynamoDocumentClient} from "node-aws-utils";

(async () => {
    const tableName = 'store';
    const where = {id: 1};
    const dynamo = new DynamoDB.DocumentClient();
    const storeData = (await DynamoDocumentClient.get(dynamo, tableName, where)).unwrap();
    console.log(storeData);
    // object or null
})();
```

### put or update item

```ts
import {DynamoDB} from "aws-sdk";
import {DynamoDocumentClient} from "node-aws-utils";

(async () => {
    const tableName = 'store';
    const where = {id: 1};
    const data = {email: 'user@store.com'};
    const dynamo = new DynamoDB.DocumentClient();
    const updatedData = (await DynamoDocumentClient.update(dynamo, tableName, where, data)).unwrap();
    console.log(updatedData);
    // object or empty object
})();
```

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