LEVELNET
Remote API bindings for LevelUP
A replication of the LevelDB API on the client. Full API coverage using battle hardened mux-demux and dnode to provide the streaming RPC mechanism. Create a LevelUP
instance, pass it to a Levelnet
server function and get a duplex stream to pipe into. The client()
function returns a stream which also has the full levelUP
API integrated.
DUPLICATE MODULE WARNING
Another module, multilevel, exists and provides the same functionalityas levelnet - though levelnet uses dnode whereas multilevel uses rpc-stream. If in doubt use multilevel - it has been around longer and does some extra stuff that might be useful. I also changed
levnet
's API to match multilevel so you can just drop in either and they'll work.
EXAMPLES
SIMPLE SERVER
var levelup = db = net = levnet = var PORT = 9988 server = net { var lev = levnet stream}
SIMPLE CLIENT Callback API
var levnet = net = var PORT = 9988 stream = net var lev = levnet lev
SIMPLE CLIENT Streaming API
var levnet = net = var PORT = 9988var stream = netvar lev = levnet lev stream
INSTALL
npm install levelnet
LICENSE
MIT