1.2.2 • Published 11 years ago

couchdb-api v1.2.2

Weekly downloads
106
License
-
Repository
github
Last release
11 years ago

node-couchdb-api

This node.js module aims to provide a clean, asynchronous wrapper for the CouchDB API.

It uses callbacks that follow node.js conventions and aims to be as expressive as possible.

Installation

$ npm install couchdb-api

Usage

var couchdb = require("couchdb-api");

// connect to a couchdb server (defaults to http://localhost:5984)
var server = couchdb.srv();

// test it out!
server.info(function (err, response) {
console.log(response);

// should get { couchdb: "Welcome", version: "1.0.1" }
// if something went wrong, the `err` argument would provide the error that CouchDB provides
});

// select a database
var db = server.db("my-database");

db.info(function (err, response) {
console.log(response);

// should see the basic statistics for your test database
// if you chose a non-existant db, you'd get { error: "not_found", reason: "no_db_file" } in place of `err`
});

Refer to my website for documentation and resources.

Changelog

1.2.2

  • Fixing issues #17, #12 and #11

1.2.0

  • Complete documentation rewrite (now generated automatically via source code comments with dox)
  • Simplified the JSHint config by putting it into a single file at the root
  • Simplified the index.js entry-point. couchdb.srv() now only takes a single argument, a string URL.

1.1.5

  • Changed the package.json to allow for installs on node engine version 8
1.2.2

11 years ago

1.2.1

11 years ago

1.2.0

12 years ago

1.1.5

12 years ago

1.1.4

12 years ago

1.1.3

12 years ago

1.1.2

12 years ago

1.1.1

12 years ago

1.1.0

12 years ago

1.0.0

12 years ago

0.12.0

12 years ago

0.11.0

12 years ago

0.9.5

12 years ago

0.9.1

12 years ago

0.9.0

12 years ago

0.8.1

12 years ago

0.8.0

12 years ago

0.7.0

12 years ago

0.6.1

12 years ago

0.6.0

12 years ago

0.5.0

12 years ago

0.4.0

12 years ago

0.3.5

12 years ago

0.3.0

12 years ago

0.2.5

12 years ago

0.2.0

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.10.0

12 years ago

0.9.6

13 years ago