Skip to content

aaaristo/level-http2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

level-http2

Access a leveldb instance via HTTP2

Client

var levelHTTP2= require('level-http2');

var db= levelHTTP2.client('http://127.0.0.1:8080/');

// db is a normal level-up api
db.put('mykey','myvalue',function (err,value)
{
    db.get('mykey',function (err,value)
    {
        console.log(err, value);
    });
});

Server (embedded)

var levelHTTP2= require('level-http2');

levelHTTP2.server({ path: './data' }).listen(8080);

Server (cli)

$ level-http2 --path ./data --port 8080

About

Access a leveldb instance via HTTP2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published