@jtviegas/dyndbstore

2.1.1 • Public • Published

master build & test release build, test & publish Coverage Status

dyndbstore

store facade to DynamoDb

Installation

npm install @jtviegas/dyndbstore

Usage

required environment variables

- region - aws region ( not mandatory, default: eu-west-1 )
- AWS_ACCESS_KEY_ID ( mandatory )
- AWS_SECRET_ACCESS_KEY ( mandatory )
- DYNDBSTORE_TEST_ENDPOINT ( not mandatory, for testing purposes )

code snippet example

var store = require('@jtviegas/dyndbstore');
store.getObjsCount(table, (e, r) => {
            if(e)
                done(e);
            else {
                expect(r).to.equal(0);
                done(null);
            }
        });

Tests

npm test

Contributing

just help yourself and submit a pull request

Package Sidebar

Install

npm i @jtviegas/dyndbstore

Weekly Downloads

0

Version

2.1.1

License

ISC

Unpacked Size

32 kB

Total Files

8

Last publish

Collaborators

  • jtviegas