npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

rocksdb-native

3.11.4

@kasperisager

npmHomeRepoSnykSocket
Downloads:9760
$ npm install rocksdb-native
DailyWeeklyMonthlyYearly

rocksdb-native

https://github.com/holepunchto/librocksdb bindings for JavaScript.

npm i rocksdb-native

[!IMPORTANT] On Linux libatomic must be installed as well.

Usage

const RocksDB = require('rocksdb-native')

const db = new RocksDB('./example.db')

const w = db.write()
w.put('hello', 'world')
await w.flush()

const r = db.read()
const p = r.get('hello')
r.flush()

console.log(await p)

License

Apache-2.0