Socket
Socket
Sign inDemoInstall

level-export

Package Overview
Dependencies
11
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    level-export

export a level-db database to a JSON stream


Version published
Weekly downloads
24
decreased by-7.69%
Maintainers
1
Install size
137 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 22 May 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc