Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jo/couchdb-secure
Write couchdb security object from file or directory.
https://github.com/jo/couchdb-secure
Last synced: 11 days ago
JSON representation
Write couchdb security object from file or directory.
- Host: GitHub
- URL: https://github.com/jo/couchdb-secure
- Owner: jo
- License: other
- Created: 2015-06-08T09:50:47.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2023-03-08T04:56:31.000Z (over 1 year ago)
- Last Synced: 2024-10-14T20:51:52.219Z (25 days ago)
- Language: JavaScript
- Size: 2.58 MB
- Stars: 9
- Watchers: 43
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - jo/couchdb-secure - Write couchdb security object from file or directory. (others)
README
# CouchDB Secure
Write couchdb security object from file or directory.## API
```js
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](https://github.com/jo/couchdb-compile) for in depth information about source handling.
* `callback` - called when done with a `response` object describing the status of all operations.### Example
```js
var secure = require('couchdb-secure')
secure('http://localhost:5984/mydb', 'couchdb/security.json', function(error, response) {
// here we go
})
```## CLI
```sh
couchdb-secure URL [SOURCE]
```When `SOURCE` is omitted, the current directory will be used.
### Example
```sh
couchdb-secure http://localhost:5984/mydb couchdb/security.json
```## Tests
```sh
npm test
```