# cloudant-promise

> Use Cloudant with promises

Latest version **0.1.0** (published 2016-06-22) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install cloudant-promise
pnpm add cloudant-promise
yarn add cloudant-promise
bun add cloudant-promise
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-06-22 |
| First published | 2016-06-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ary Pablo Batista |
| Maintainers | arypbatista |
| Keywords | Cloudant, promises |

## Links

- npm: https://www.npmjs.com/package/cloudant-promise
- Repository: https://github.com/arypbatista/cloudant-promise
- Homepage: https://github.com/arypbatista/cloudant-promise#readme
- Issues: https://github.com/arypbatista/cloudant-promise/issues
- npm.io page: https://npm.io/package/cloudant-promise

## Dependencies (2)

- [cloudant](https://npm.io/package/cloudant.md) ^1.4.2
- [nano-promises](https://npm.io/package/nano-promises.md) ^1.2.0

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-06-22

## README

# Cloudant-promise
![last-release](https://img.shields.io/github/tag/arypbatista/cloudant-promise.svg)
[![npm-version](https://img.shields.io/npm/v/cloudant-promise.svg)](https://www.npmjs.com/package/cloudant-promise)
[![npm-license](https://img.shields.io/npm/l/cloudant-promise.svg)](https://www.npmjs.com/package/cloudant-promise)
[![Build Status](https://travis-ci.org/arypbatista/cloudant-promise.svg?branch=master)](https://travis-ci.org/arypbatista/cloudant-promise)
[![codecov.io](https://codecov.io/github/arypbatista/cloudant-promise/coverage.svg?branch=master)](https://codecov.io/github/arypbatista/cloudant-promise?branch=master)
[![npm-downloads](https://img.shields.io/npm/dm/cloudant-promise.svg)](https://www.npmjs.com/package/cloudant-promise)

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

## Installation

```sh
$ npm install cloudant-promise --save
```

## Usage

```js
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][license].

[license]: http://www.apache.org/licenses/LICENSE-2.0
[cloudant]: https://www.npmjs.com/package/cloudant
[nano-promises]: https://www.npmjs.com/package/nano-promises

---
_Source: https://npm.io/package/cloudant-promise · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
