level-export
export a level-db database to a JSON stream
see also: level-import
usage
var levelExport =
outputs
[{"key":"a","value":"o"},{"key":"b","value":"m"},{"key":"c","value":"g"}]
api
levelExport(db: Object, opt: Object) => ReadableStream
Creates a readable JSON stream from a LevelUP database instance. This stream is suitable for dumping to a file for backup purposes.
opt
can have the following options:
start
: string. start of export key rangeend
: string. end of export key range
installation
$ npm install level-export
running the tests
From package root:
$ npm install
$ npm test
contributors
- jden jason@denizac.org
license
ISC. (c) MMXIV jden jason@denizac.org. See LICENSE.md