registry.js
function createDatabase(name, cb) {
  nano().db.create(name, function(err) {
    if(err && err.status_code !== 412) return cb(err)
    cb(null, err ? false : true)
  })
}
function createDatabase(name, cb) {
  nano().db.create(name, function(err) {
    if(err && err.status_code !== 412) return cb(err)
    cb(null, err ? false : true)
  })
}
function createDatabase ( name , cb ) { nano ( ) . db . create ( name , function ( err ) { if ( err && err . status_code !== 412 ) return cb ( err ) cb ( null , err ? false : true ) } ) }
Creates a database We assume that every database belongs to exactly one user. Both share the same name.
Creates a database We assume that every database belongs to exactly one user . Both share the same name .