2.0.0 • Published 6 years ago

@mac-/dynamo-merge v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

dynamo-merge

Greenkeeper badge Build Status NPM Version Codacy Badge

Installation

yarn add dynamo-merge # or npm install dynamo-merge --save

Usage

import merge from "dynamo-merge"

const result = await documentClient.update({
    TableName: "users",
    Key: {email},
    ...merge(updatedUserAttributes),
})

Look at test.js for example use cases and the expected output.

Tests

To run tests, use

yarn test # or npm test

License

MIT

2.0.0

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.4

7 years ago