Skip to content

The Node Binding for LevelDB, updated with ZLib support for MCPE

License

Notifications You must be signed in to change notification settings

rom1504/node-leveldb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-leveldb

Note: This is under heavy development, things will probably break so don't use this in production

The Node Binding for LevelDB, updated with ZLib support for MCPE

Installation

Alright, firstly, make sure you don't have leveldb installed in your path then

git clone https://github.com/Mojang/leveldb-mcpe
cd leveldb-mcpe/
make
cp --preserve=links libleveldb.* /usr/local/lib
cp -r include/leveldb /usr/local/include/
sudo ldconfig

Now, clone this repo and node-gyp rebuild or npm install

Usage

It's not hard, trust me...

console.log(addon.open("db"));
console.log(addon.put("key", 3, "value", 5));
console.log(addon.get("key", 3));
console.log(addon.delete("key", 3));
console.log(addon.close());

About

The Node Binding for LevelDB, updated with ZLib support for MCPE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published