cloudant-promise

0.1.0 • Public • Published

Cloudant-promise

last-release npm-version npm-license Build Status codecov.io npm-downloads

Use Cloudant with promises. Cloudant-promise binds together nano-promises and cloudant.

Installation

$ npm install cloudant-promise --save

Usage

const cloudant = require('cloudant-promise');

const credentials = {
  account  : '<account>',
  password : '<password>'
};

const db = cloudant(credentials).db.use('alice');

db.insert({ 'crazy': true }, 'rabbit')
  .then(body => console.log(body))
  .catch(err => console.error(err));

License

This library is licensed under Apache 2.0. Full license text is available in COPYING.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i cloudant-promise

Weekly Downloads

1

Version

0.1.0

License

Apache-2.0

Last publish

Collaborators

  • arypbatista