Gathering detailed insights and metrics for level-concat-iterator
Gathering detailed insights and metrics for level-concat-iterator
Gathering detailed insights and metrics for level-concat-iterator
Gathering detailed insights and metrics for level-concat-iterator
Concatenate entries from an iterator into an array.
npm install level-concat-iterator
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
5 Stars
49 Commits
2 Forks
14 Watching
3 Branches
10 Contributors
Updated on 01 Dec 2021
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-45.8%
99,048
Compared to previous day
Last week
-1%
790,835
Compared to previous week
Last month
7.3%
3,152,777
Compared to previous month
Last year
22.1%
22,685,665
Compared to previous year
1
7
Concatenate entries from an iterator into an array.
:pushpin: This module will soon be deprecated, because its functionality is included in
abstract-level
.
1const concat = require('level-concat-iterator') 2const level = require('level') 3 4const db = level('./db') 5 6db.put('foo', 'bar', function (err) { 7 if (err) throw err 8 9 concat(db.iterator(), function (err, entries) { 10 if (err) throw err 11 12 // [{ key: 'foo', value: 'bar' }] 13 console.log(entries) 14 }) 15})
With promises:
1await db.put('foo', 'bar') 2const entries = await concat(db.iterator())
If you are upgrading: please see UPGRADING.md
.
concat(iterator[, callback])
Takes an abstract-leveldown
compatible iterator
as first parameter and calls the callback
with an array of entries, where each entry is an object in the form { key, value }
. Calls the callback
with an error if iterator.next()
or iterator.end()
errors. If no callback is provided, a promise is returned.
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 for more details.
Support us with a monthly donation on Open Collective and help us continue our work.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 1/19 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More