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

couchdb-client

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb-client - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

package.json
{
"name": "couchdb-client",
"version": "1.0.4",
"version": "1.0.5",
"description": "A simple couchdb client",

@@ -5,0 +5,0 @@ "main": "index.js",

# CouchDBClient
## Table of Contents
- [Example](#example)
- [Usage](#usage)
- [Documentation](#documentation)
- [CouchDBClient](#couchdbclient)
- [Example](#example)
- [Usage](#usage)
- [Documentation](#documentation)
- [CouchDBClient](#couchdbclient)
## Example

@@ -15,7 +14,7 @@ welcome.js

var client = CouchDBClient({
host: '127.0.0.1',
port: '5984'
host: '127.0.0.1', //The host to connect to
port: '5984' //The port
});
client.welcome(function (err, data) {
console.log(err || data);
console.log(err || data); //Hope it is not an error!
});

@@ -29,5 +28,13 @@ ```

## Documentation
This will be moved to another site eventually.
## CouchDBClient([options])
This constructs your client. Options can have:
host: the hose
This constructs your client. The options object can have:
host: the host to connect to. Default: 127.0.0.1
port: the port to connect to. Default: 5984
```js
var CouchDBClient = require('couchdb-client');
var client = CouchDBClient({
host: example.com,
port: 3000
});
```
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