1.3.2 • Published 10 years ago

couch-push v1.3.2

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

couch-push

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

Build
Status

var push = require('couch-push');

push('http://localhost:5984/my-app', 'path/to/couch/app', function(err, resp) {
  // { ok: true }
});

Usage

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

url

URL to a CouchDB database. Auth URLs are OK. See nanos configuration, as this argument is directly passed to nano.

source

Can be a Couchapp Directory Tree, JSON file or CommonJS/Node module. Please see couchdb-compile for in depth information about source handling.

options

When options.multipart is true, attachments are saved via multipart api.

callback

callback is called with two arguments: error and response.

CLI

npm install -g couch-push

Give it a database and a directory:

couch-push http://localhost:5984/my-app /path/to/my/couch/app

When omitted, the current directory will be used.

Testing

Run the testsuite with

npm test

(c) 2014 Johannes J. Schmidt, TF
MIT License

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.5

10 years ago

1.1.4

11 years ago

1.1.3

11 years ago

1.1.2

11 years ago

1.1.1

11 years ago

1.1.0

11 years ago

1.0.0

11 years ago