# noodle-dynamo

> A wrapper for integrating with DynamoDB in my node projects!

Latest version **1.2.0** (published 2021-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install noodle-dynamo
pnpm add noodle-dynamo
yarn add noodle-dynamo
bun add noodle-dynamo
```

## 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.2.0 |
| Published | 2021-05-15 |
| First published | 2020-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 11.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | noodles-please-me |
| Keywords | dynamo, aws |

## Links

- npm: https://www.npmjs.com/package/noodle-dynamo
- Repository: https://github.com/RyanMKrol/noodle-dynamo
- Homepage: https://github.com/RyanMKrol/noodle-dynamo#readme
- Issues: https://github.com/RyanMKrol/noodle-dynamo/issues
- npm.io page: https://npm.io/package/noodle-dynamo

## Dependencies (2)

- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.635.0
- [@types/node](https://npm.io/package/@types/node.md) ^14.0.23

## 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.2.0 (latest) — 2021-05-15
- 1.1.0 — 2021-05-15
- 1.0.6 — 2020-09-12
- 1.0.5 — 2020-07-15
- 1.0.4 — 2020-07-15
- 1.0.3 — 2020-03-08
- 1.0.2 — 2020-03-08
- 1.0.1 — 2020-03-08
- 1.0.0 — 2020-03-08

## README

# noodle-dynamo

A wrapper for integrating with DynamoDB in my node projects!

## Usage

Store your credentials somewhere the code can access them.

```
{
  "accessKeyId": "an access ID!",
  "secretAccessKey": "a secret access key!"
}

```

Create your wrapper, and then start making calls!

### Reading

```
import DynamoDBWrapper from 'noodle-dynamo'
import dynamoCredentials from '.../credentials/dynamo.json'

const dynamoDb = new DynamoDBWrapper(dynamoCredentials, 'us-east-2')

const table = 'DataTable'
const expression = 'itemId = :id'
const expressionData = {
  ':id': actual_id,
}

dynamoDb.readTable(table, expression, expressionData).then((data) => {
  ...
}).catch((error) => {
  ...
})
```

### Writing

```
import DynamoDBWrapper from 'noodle-dynamo'
import dynamoCredentials from '.../credentials/dynamo.json'

const dynamoDb = new DynamoDBWrapper(dynamoCredentials, 'us-east-2')

const table = 'DataTable'
const insertItem = {
  'id': actual_id,
  'dataKey': dataValue,
}

dynamoDb.writeTable(table, insertItem).then((data) => {
  ...
}).catch((error) => {
  ...
})
```

### Deleting

```
import DynamoDBWrapper from 'noodle-dynamo'
import dynamoCredentials from '.../credentials/dynamo.json'

const dynamoDb = new DynamoDBWrapper(dynamoCredentials, 'us-east-2')

const table = 'DataTable'
const deleteParams = {
  'id': actual_id,
}

dynamoDb.deleteItemFromTable(table, insertItem).then((data) => {
  ...
}).catch((error) => {
  ...
})
```

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