level-net-server

LevelDB database exposed as a TCP server

level-net-server

LevelDB database exposed as a TCP server

Install the level server and the level modules if you haven't.

$ npm i level-net-server level --save
var Server = require('level-net-server')
var level = require('level');
 
var db = level('/path/to/leveldb/dir', {createIfMissing: true});
var server = Server(db);
server.listen(port, host, cb);

You can use the level-net-client to interact with this server.

server.close(cb);