level-in
v0.0.10
Published
A simple utility for writing to a leveldb
Downloads
11
Readme
A simple utility for writing to a leveldb via levelup
Usage
Install globally with npm install -g level-in
and then use like so:
Usage: level-in <databaseName> [options]
Options:
-h, --help output usage information
-V, --version output the version number
-k, --key [value] specify a key
-m, --mode [value] specify a mode, can be either "put" or "del"
-v, --value [value] specify a value
level-in
is pipeable so you can stream data into it like so:
echo '{"key":"1",value:"one"}' | level-in myDB
...meaning you could dump the contents of a text file into a levelDB like so:
cat data.stream | level-in myDB
...or even replicate from another DB using level-out
level-out oldDB | level-in newDB