Package Exports
- dynamodb-promise
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dynamodb-promise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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);