multilevel-connect

Connect to multilevel by an address string

multilevel-connect

Connect to multilevel by an address string like user@host:port.

var connect = require('multilevel-connet');
 
var db = connect('name:julian,pass:private@ghub.io:3001');
 
db.get('key', function(errvalue){
  console.log(value);
});

Connect to the database at addr.

Possible formats for addr:

  • port
  • user@port
  • host:port
  • user@host:port

user is a string or of format key:value,key:value,....

Returns a multilevel client.

$ npm install multilevel-connect

MIT