Socket
Socket
Sign inDemoInstall

bluemixcloudant

Package Overview
Dependencies
55
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bluemixcloudant

A simple wrapper around Nano to use with Cloudant on IBM BlueMix


Version published
Weekly downloads
5
decreased by-72.22%
Maintainers
1
Install size
5.15 MB
Created
Weekly downloads
 

Readme

Source

bluemixcloudant - Node.js library for Cloudant running on IBM BlueMix

This project simply loads an instance of Nano (the Node.js CouchDB library) and configures it with your Cloudant parameters when running in IBM's BlueMix environment.

  • if you are running locally, Nano is configured with local CouchDB
  • if you are running in BlueMix, Nano is configured with the first Cloudant service it comes across in BlueMix's environment variables

Using bluemixcloudant

Add "bluemixcloudant" in your package.json's dependencies object:

dependencies: {
  "bluemixcloudant": ""
}

and run

npm install

You can then use bluemixcloudant in your code:

var cloudant = require('bluemixcloudant');
cloudant.get('rabbit', { revs_info: true }, function(err, body) {
  if (!err)
    console.log(body);
});

The returned "cloudant" object is actually a Nano instance, preconfigured with either local CouchDb or BlueMix's Cloudant service, gleaned from the environment.

Keywords

FAQs

Last updated on 23 Jul 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc