Seed CouchDB design documents with
npm install couchdb-seed-design
var nano = ;var seed = ;var db = ;;
couchdb-seed-design(db, design, cb)
object, required) -
nano(or compatible) database object
object, required) - design object
function, optional) - callback
Creates a set of CouchDB design documents basing on
design object. Each key
design object becomes a separate design document called (
'_design/' + key).
If no changes between remote design documents and
design object are detected,
no updates are sent to CouchDB.