New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-jsondb-client

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-jsondb-client

jsondb-client: Socket client for remote interaction with json database

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

node-jsondb-client

Socket client for use with node-jsondb-srv

Description

node-jsondb-client is a socket client for use with node-jsondb-srv. The JSON database socket service accepts connections from the client and allows interaction with a remote JSON database.

Installation

npm install node-jsondb-client

Usage

var dbName = "test";
var dbHost = "localhost";
var dbPort = 10089;

var jsonClient = require('node-jsondb-client').create(dbName,dbHost,dbPort);

jsonClient.connect();

var userName = "admin";
var userPass = "admin";

function callback(response) {
	console.log("packet received: " + JSON.stringify(response));
}

var path = "path/to/object";

jsonClient.auth(callback,userName,userPass);
jsonClient.lock(callback,path,"w");
jsonClient.read(callback,path);
jsonClient.write(callback,[{path:"path/to",key:"object",value:10},...]);
jsonClient.unlock(callback,path);

jsonClient.subscribe(callback,path);
jsonClient.unsubscribe(callback,path);

jsonClient.disconnect();

Keywords

utility

FAQs

Package last updated on 23 Apr 2016

Did you know?

Socket

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