slang-couchdb

0.0.1 • Public • Published

couchdb client

Build Status NPM version NPM license

why?

There are a few other libraries, but nothing I liked. This is what I've done differently:

  • Everything is handled through streams and promises.
  • Authentication and retries are handled transparently by the client.
  • Property naming matches JavaScript's style and is consistent. _id is the document id everywhere (including status messages) and snake_case names are corrected to camelCase.
  • Optimize to make the fewest requests possible... tracking cookie timeouts to avoid retries, allowing you to specify if a conflict is likely to happen, and get the doc to apply your changes before attempting an update, using the _bulk_docs endpoint for post streams, and combining duplicate requests in get/head streams.

install

CouchDB Client is an npm package, so it can be installed into your project like this:

npm install slang-couchdb --save

usage

If you want pretty printing, pipe the output into jq.

similar tools

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.12latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.12
0.0.00

Package Sidebar

Install

npm i slang-couchdb

Weekly Downloads

2

Version

0.0.1

License

GPL-3.0

Unpacked Size

84.3 kB

Total Files

37

Last publish

Collaborators

  • slang