level-net-server

LevelDB database exposed as a TCP server

npm install level-net-server
16 downloads in the last month

level-net-server

LevelDB database exposed as a TCP server

Build Status

NPM status

Install

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

$ npm i level-net-server level --save

Require

var Server = require('level-net-server')

Create DB

var level = require('level');

var db = level('/path/to/leveldb/dir', {createIfMissing: true});

Create Server

var server = Server(db);

Make server listen on port

server.listen(port, host, cb);

Interact with it

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

Close the server

server.close(cb);
npm loves you