Skip to content

juliangruber/maxilevel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maxilevel

(WIP) A LevelDB hosting service using multilevel

Example

var Maxilevel = require('maxilevel');
var m = Maxilevel(__dirname + '/dbs');
var connect = require('multilevel-connect');

m.get('foo', function(err, port){
  if (err) throw err;
  var db = connect(port);

  db.get('foo', function(err, val){
    if (err) throw err;

    console.log('foo => %s', val);

    db.close();
    m.close('foo');
  });
});

Installation

$ npm install maxilevel

API

Maxilevel(dir)

#get(id, fn)

#close(id)

License

MIT

About

(WIP) A LevelDB hosting service using multilevel

Resources

Stars

Watchers

Forks

Packages

No packages published