LevelDB TCP Server
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
.travis.yml
README.md
index.js
package.json
peer.js

README.md

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);