Home

Awesome

CouchDB Push

Deploy CouchDB documents from directory, JSON or CommonJS module. Via API or command line client.

API

push(db, source[, options], callback)

Example

var push = require('couchdb-push');
push('http://localhost:5984/my-app', 'project/couchdb', function(err, resp) {
  // { ok: true }
});

CLI

couchdb-push DB [SOURCE] [OPTIONS]

When SOURCE is omitted, the current directory will be used.
OPTIONS can be --index, --multipart or --watch, see above.

Example

couchdb-push http://localhost:5984/my-app project/couchdb --watch

Tests

npm test

(c) 2014-2018 Johannes J. Schmidt, TF

Apache 2.0 License