dynamodb-promise
v1.0.1
Published
promisified dynamodb Document Client , with some useful helpers
Downloads
6
Readme
dynamodb-promise
A Promisified dynamodb Document Client , with some useful helpers
Usage
Install:
npm i --save dynamodb-promise
Use:
'use strict';
const DocumentClient = require('dynamodb-promise')
, co = require('co');
let docClient = DocumentClient({region: 'us-east-1'});
function *main() {
let res = yield docClient.scanFullAsync({
TableName: 'example_table_name'
});
console.log(`Found ${res.Items.length} items.`)
}
co(main);