level-in

0.0.10 • Public • Published

A simple utility for writing to a leveldb via levelup

NPM version MIT License Build Status

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

Dependencies (3)

Dev Dependencies (3)

Package Sidebar

Install

npm i level-in

Weekly Downloads

1

Version

0.0.10

License

MIT

Last publish

Collaborators

  • fergie