2.1.0 • Published 3 years ago

couchdb-secure v2.1.0

Weekly downloads
1,276
License
Apache-2.0
Repository
github
Last release
3 years ago

CouchDB Secure

Write couchdb security object from file or directory.

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
2.1.0

3 years ago

2.0.0

3 years ago

1.5.0

6 years ago

1.4.2

8 years ago

1.4.1

9 years ago

1.4.0

9 years ago

1.3.6

9 years ago

1.3.5

9 years ago

1.3.4

9 years ago

1.3.3

9 years ago

1.3.2

9 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago