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

level-concat-iterator

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

level-concat-iterator

Concatenate items from an iterator into an array.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
725K
decreased by-12.95%
Maintainers
1
Weekly downloads
 
Created
Source

level-concat-iterator

Concatenate items from an iterator into an array.

level badge npm Node version Travis dependencies JavaScript Style Guide npm

Usage

var concat = require('level-concat-iterator')
var leveldown = require('leveldown')

var db = leveldown('DB')

db.open(function () {
  db.put('foo', 'bar', function () {
    concat(db.iterator(), function (err, data) {
      console.log(data)
    })
  })
})

API

concat(iterator[, nextTick], cb)

Takes an abstract-leveldown compatible iterator as first parameter and calls back with an array of keys and values. Second parameter is an optional function for handling nextTick, which defaults to process.nextTick. Calls back with an error if iterator.next(cb) or iterator.end(cb) errors.

Contributing

level-concat-iterator is an OPEN Open Source Project. This means that:

Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.

See the contribution guide file for more details.

License

MIT © 2018-present level-concat-iterator Contributors.

Keywords

FAQs

Package last updated on 23 Jun 2018

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