# gj-aws-dynamodb

> ## Installation In order to add this package to your service, run the following command: ``` npm i gj-aws-dynamodb ```

Latest version **1.0.3** (published 2020-05-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install gj-aws-dynamodb
pnpm add gj-aws-dynamodb
yarn add gj-aws-dynamodb
bun add gj-aws-dynamodb
```

## 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.3 |
| Published | 2020-05-20 |
| First published | 2020-05-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | garysjennings |

## Links

- npm: https://www.npmjs.com/package/gj-aws-dynamodb
- npm.io page: https://npm.io/package/gj-aws-dynamodb

## Dependencies (1)

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

## Recent versions

- 1.0.3 (latest) — 2020-05-20
- 1.0.2 — 2020-05-20
- 1.0.1 — 2020-05-16
- 1.0.0 — 2020-05-16

## README

# gj-aws-dynamodb

## Installation
In order to add this package to your service, run the following command:
```
npm i gj-aws-dynamodb
```

## Usage

```js
const dynamodb = require('gj-aws-dynamodb')

const main = async main() => {
    await dynamodb.create({
        name: 'tableName', 
        PK: 'PK', // optional, defualts to PK if not defined
        SK: 'SK',  // optional, defualts to PK if not defined. If set to false, only a hash key with PK will be made, range key will be omitted
        GSI1: false,
        GSI2: false
    })
    /*
    return {
        name: String,
        arn: String
    }
    */

    await dynamodb.getTable('tableName')
    /*
    return {
        name: String,
        arn: String
    }
    */


    await dynamodb.remove('tableName') 
    /*
    return tableName
    */
}

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