Skip to content

Commit

Permalink
update to esm and aws-sdk v3
Browse files Browse the repository at this point in the history
  • Loading branch information
heapwolf committed Mar 27, 2024
1 parent 44a96ce commit 8912120
Show file tree
Hide file tree
Showing 10 changed files with 228 additions and 726 deletions.
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
# SYNOPSIS
A nice DynamoDB client.
A highly opinionated DynamoDB client for aws-sdk v3 using esm.

# USAGE

```js
const Dynavolt = require('dynavolt')
const DynamoDB = require('aws-sdk/clients/dynamodb')
const db = new Dynavolt(DynamoDB, { region: 'us-west-2' })
import Dynavolt from 'dynavolt'
const db = new Dynavolt({ region: 'us-west-2' })
```

you must pass in the `DynamoDB` constructor from the `aws-sdk`.
It is recommended to access it by `require('aws-sdk/clients/dynamodb')` to avoid loading
the all the other apis you do not need.

## TABLES

### CREATE
Expand Down
Loading

0 comments on commit 8912120

Please sign in to comment.