npm

superlevel

5.0.3 • Public • Published

superlevel

a minimalist cli utility for leveldb databases

NPM

if you want more features check out lev

usage

$ superlevel <path-to-leveldb> <command> <key> <value> --option

most arguments are applied directly to a levelup instance

examples

$ superlevel db put foo baz --createIfMissing=true # if the db doesnt exist yet
$ superlevel db/ get foo
baz
$ superlevel db/ put foo baz
$ superlevel db/ get foo
bar
$ superlevel db/ put zoo cow
$ superlevel db/ createReadStream
{"key":"foo","value":"bar"}
{"key":"zoo","value":"cow"}
$ superlevel db/ createReadStream --start=z
{"key":"zoo","value":"cow"}
$ superlevel db/ delete foo
$ superlevel db/ createReadStream
{"key":"zoo","value":"cow"}

streaming many gets and puts

$ cat cooldata.json | superlevel db/ createWriteStream
{"success":true,"key":"pizza"}
{"success":true,"key":"musubi"}
$ cat cooldata.json | jsonfilter key | superlevel db/ createGetStream
{"key":"pizza","value":"pineapple"}
{"key":"musubi","value":"spam"}

Readme

Keywords

none

Package Sidebar

Install

npm i superlevel

Weekly Downloads

0

Version

5.0.3

License

BSD

Last publish

Collaborators

  • maxogden
  • mafintosh