Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

level-export

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

level-export

export a level-db database to a JSON stream

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 22 May 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc