npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

couchdb-secure

1.5.0 • Public • Published

CouchDB Secure

Write couchdb security object from file or directory.

BuildStatus

API

secure(url, source[, options], callback)
  • url - CouchDB database URL
  • source - Can be a Couchapp Directory Tree, JSON file or CommonJS/Node module. Please see couchdb-compile for in depth information about source handling.
  • callback - called when done with a response object describing the status of all operations.

Example

var secure = require('couchdb-secure')
secure('http://localhost:5984/mydb', 'couchdb/security.json', function(error, response) {
  // here we go
})

CLI

couchdb-secure URL [SOURCE]

When SOURCE is omitted, the current directory will be used.

Example

couchdb-secure http://localhost:5984/mydb couchdb/security.json

Tests

npm test

install

npm i couchdb-secure

Downloadsweekly downloads

499

version

1.5.0

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability