couch-init2
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -34,4 +34,4 @@ const _ = require('inv-loggers') | ||
return bluebird.all(dbsList.map(initDb)) | ||
.then((res) => {ok: true}) | ||
.then((res) => { return { ok: true } }) | ||
.catch(_.ErrorRethrow('db init err')) | ||
} |
{ | ||
"name": "couch-init2", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Opiniated CouchDB databases initializer", | ||
@@ -8,3 +8,4 @@ "main": "index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"lint": "./node_modules/standard/bin/cmd.js index.js lib/*js" | ||
"lint": "./node_modules/standard/bin/cmd.js index.js lib/*js", | ||
"prepublish": "npm run lint" | ||
}, | ||
@@ -18,3 +19,18 @@ "author": "maxlath", | ||
"standard": "^6.0.7" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/maxlath/couch-init2.git" | ||
}, | ||
"keywords": [ | ||
"couchdb", | ||
"nano", | ||
"bluebird", | ||
"nano-blue", | ||
"promises" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/maxlath/couch-init2/issues" | ||
}, | ||
"homepage": "https://github.com/maxlath/couch-init2#readme" | ||
} |
# couch-init2 | ||
[![npm package](http://img.shields.io/npm/v/couch-init2.svg?style=flat-square)](https://www.npmjs.com/package/couch-init2) | ||
[![node](https://img.shields.io/badge/node-v4.3.x-brightgreen.svg)](http://nodejs.org) | ||
**An opiniated CouchDB databases initializer for users of [nano-blue](https://www.npmjs.com/package/nano-blue)** (which is just a bluebird [promisified](http://bluebirdjs.com/docs/api/promisification.html) version of the awesome [nano](https://github.com/dscape/nano)) | ||
@@ -37,4 +40,5 @@ | ||
var designDocFolder = '/path/to/your/design/docs/folder' | ||
// an nano-blue object initialized with your CouchDB url | ||
// that probably looks like http://localhost:5984 or http://username:password@localhost:5984 with auth | ||
var dbUrl = 'http://username:password@localhost:5984' | ||
// a nano-blue object initialized with your CouchDB url | ||
var nano = require('nano-blue')(dbUrl) | ||
@@ -45,3 +49,3 @@ | ||
// dbs were successfully initialized! | ||
// time to start your server or what ever crazy thing you're building :) | ||
// time to start your server or whatever crazy thing you're building :) | ||
}) | ||
@@ -48,0 +52,0 @@ .catch(function (err) { // handle the error }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
49585
9
0
1
53
1