level-export

0.1.0 • Public • Published

level-export

export a level-db database to a JSON stream

see also: level-import

usage

var levelExport = require('level-export')
 
levelExport(levelUPdb)
  .pipe(process.stdout)

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 range
  • end : string. end of export key range

installation

$ npm install level-export

running the tests

From package root:

$ npm install
$ npm test

contributors

license

ISC. (c) MMXIV jden jason@denizac.org. See LICENSE.md

Readme

Keywords

none

Package Sidebar

Install

npm i level-export

Weekly Downloads

21

Version

0.1.0

License

ISC

Last publish

Collaborators