Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    multilevel-connectpublic

    multilevel-connect

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

    build status

    Example

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

    API

    connect(addr)

    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.

    Installation

    $ npm install multilevel-connect

    License

    MIT

    Keywords

    none

    install

    npm i multilevel-connect

    Downloadsweekly downloads

    10

    version

    1.0.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar