0.2.2 • Published 3 years ago
@rpmanetworks/level-cli v0.2.2
RPMA changes
- upgraded levelpackage to version 7 so this module can be used with NodeJS 16.
- upgraded commanderpackage to version 6 as this seems to be the latest compatible one.
Original README:
LevelDB command line interface
Inspect and alter your leveldb records with the command line.
Similar to lev
Setup
npm i -g level-cliUsage
Usage: lev [command] [options]
Commands:                         Alias:
  keys                            k
  values                          v
  list                            l
  get <key>                       g
  put <key> <value>               p
  del <key>                       d
Options:
  -V, --version                   output the version number
  -p, --path <path>               Path to leveldb (default: . )
  -n, --limit <limit>             Stop reading after "limit" entries
  -f, --from <from>               Read records starting at "from"
  -t, --to <to>                   Read records until "to"
  -r, --reverse                   Reverse order
  -k, --keyEncoding <encoding>    key encoding [utf8, ascii, json, hex] (default: utf8)
  -v, --valueEncoding <encoding>  value encoding [utf8, ascii, json, hex] (default: utf8)
  -h, --help                      output usage informationExample
lev keys -n 10Troubleshooting
Some shells treat the ! symbol specifically.
Thus, if you encounter sth. like that:
lev put a!foo bar
=> -bash: !foo: event not foundIt means you're using history substitution
which you can turn off / on using set +H / set -H.
0.2.2
3 years ago