Socket
Socket
Sign inDemoInstall

couchdb-bootstrap

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb-bootstrap - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

11

cli.js

@@ -5,8 +5,11 @@ #!/usr/bin/env node

var url = process.argv[2]
var source = process.argv[3]
var options = require('minimist')(process.argv.slice(4))
var args = process.argv.slice(2);
if (!args.length) {
return console.log('Usage: \ncouchdb-bootstrap URL [SOURCE]')
}
var url = args[0];
var source = args[1] || process.cwd();
bootstrap(url, source, options, function(error, response) {
bootstrap(url, source, function(error, response) {
if (error) return console.error(error)

@@ -13,0 +16,0 @@

{
"name": "couchdb-bootstrap",
"version": "1.1.1",
"version": "1.2.0",
"description": "Bootstrap projects: configure CouchDB, setup security, deploy ddocs and create users.",

@@ -36,5 +36,4 @@ "main": "index.js",

"couchdb-secure": "^1.1.0",
"glob": "^5.0.10",
"minimist": "^1.1.1"
"glob": "^5.0.10"
}
}

@@ -25,14 +25,9 @@ # CouchDB Bootstrap

   ├── _design
   │   └── myapp
   │   ├── validate_doc_update.js
   │   └── views
   │   └── by-date
   │   ├── map.js
   │   └── reduce
   └── _security.json
   │   └── myapp.js
   ├── _security.json
   └── adoc.json
```
See [couch-compile](https://github.com/jo/couch-compile) for more details about
the CouchDB filesystem mapping used for deploying users, design documents,
normal documents and replications.
See [couchdb-compile](https://github.com/jo/couchdb-compile) for more details
about the CouchDB Filesystem Mapping.

@@ -42,2 +37,13 @@ ## API

```js
bootstrap(url, source[, options], callback)
```
* `url` - CouchDB server URL
* `source` - directory holding the bootstrap tree
* `options.multipart` - When set to `true`, attachments are saved via multipart api.
* `callback` - called when done with a `response` object describing the status of all operations.
### Example
```js
var bootstrap = require('couchdb-bootstrap')

@@ -49,8 +55,17 @@ bootstrap('http://localhost:5984', 'project/couchdb', function(error, response) {

## CLI
```sh
couchdb-bootstrap http://localhost:5984 /path/to/my/project/couchdb
couchdb-bootstrap URL [SOURCE]
```
When `SOURCE` is omitted the current directory will be used.
### Example
```sh
couchdb-bootstrap http://localhost:5984 project/couchdb
```
## Tests

@@ -57,0 +72,0 @@ ```sh

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc