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

couch-init2

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couch-init2 - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.status

2

index.js

@@ -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 })

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