Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.6.0 to 1.7.0

18

cli.js
#!/usr/bin/env node
var minimist = require('minimist')
var bootstrap = require('./')
var args = process.argv.slice(2);
if (!args.length) {
return console.log('Usage: \ncouchdb-bootstrap URL [SOURCE]')
var options = minimist(process.argv.slice(2), {
boolean: ['index', 'multipart'],
string: 'concurrency'
})
if (!options._.length) {
return console.log('Usage: \ncouchdb-bootstrap URL [SOURCE] [OPTIONS]')
}
var url = args[0];
var source = args[1] || process.cwd()
var url = options._[0]
var source = options._[1] || process.cwd()
bootstrap(url, source, function(error, response) {
bootstrap(url, source, options, function(error, response) {
if (error) return console.error(error)

@@ -15,0 +19,0 @@

@@ -8,2 +8,3 @@ var push = require('couchdb-push')

options.concurrency = 'concurrency' in options ? options.concurrency : 100
options.index = 'index' in options ? options.index : true

@@ -10,0 +11,0 @@ utils.dbs(source, function(error, filenames) {

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

@@ -33,8 +33,9 @@ "main": "index.js",

"async": "^1.0.0",
"couchdb-configure": "^1.1.1",
"couchdb-configure": "^1.3.2",
"couchdb-push": "^1.5.0",
"couchdb-secure": "^1.2.0",
"glob": "^5.0.10",
"minimist": "^1.1.1",
"nano": "^6.1.3"
}
}

@@ -72,4 +72,5 @@ # CouchDB Bootstrap

* `source` - directory holding the bootstrap tree
* `options.index` - When set to `true`, folders are searched for `index.js`, which, if present, is treated as CommonJS module. Default is `false`.
* `options.concurrency` - Limit number of concurrent requests. Defaults to `100`.
* `options.multipart` - When set to `true`, attachments are saved via multipart api.
* `options.multipart` - When set to `true`, attachments are saved via multipart api. Default is `false`.
* `callback` - called when done with a `response` object describing the status of all operations.

@@ -90,6 +91,7 @@

```sh
couchdb-bootstrap URL [SOURCE]
couchdb-bootstrap URL [SOURCE] [OPTIONS]
```
When `SOURCE` is omitted, the current directory will be used.
`OPTIONS` can be `--index`, '--concurrency' or `--multipart`, see above.

@@ -96,0 +98,0 @@ ### Example

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