This package has been deprecated

Author message:

clerk from 0.7.0 supports co directly via Promises

co-clerk

0.0.2 • Public • Published

co-clerk

CouchDB client for co using Clerk.

All async methods from Clerk in co-clerk return a co-yieldable Promise.

Installation

$ npm install co-clerk

Example

var co = require("co");
var clerk = require("co-clerk");
var couch = clerk();
 
co(function* () {
  var info = yield couch.info();
  console.log(info.data);
  return "done!";
}).then(function (msg) {
  console.log(msg);
});

License

MIT

Package Sidebar

Install

npm i co-clerk

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • mikepb