highland-couchdb-alldocs
Provides a Highland Streams API for iterating over all ids or documents in a CouchDB database.
var alldocs = ;var db = 'http://localhost:5984/mydb'; // return a stream of all ids in 'mydb' fetching 100 ids at a timealldocsidsdb 100; // return a stream of unresolved requests for all documents in dbvar docs = alldocs; // you can then sequence these as you like using the Highland stream API... // fetch 10 docs at a time (still processing them in order)docs; // fetch docs in seriesdocs; // you can also use Highlands error handling methods,// eg, stop processing on first request error:docs;