Gathering detailed insights and metrics for bfj-collections
Gathering detailed insights and metrics for bfj-collections
Gathering detailed insights and metrics for bfj-collections
Gathering detailed insights and metrics for bfj-collections
Helper library for BFJ that specializes in arrays of objects
npm install bfj-collections
Typescript
Module System
Node Version
NPM Version
59.1
Supply Chain
76.1
Quality
74.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
9,634
Last Day
7
Last Week
15
Last Month
32
Last Year
580
MIT License
19 Commits
1 Forks
2 Watchers
1 Branches
2 Contributors
Updated on Dec 08, 2023
Minified
Minified + Gzipped
Latest Version
1.0.6
Package Id
bfj-collections@1.0.6
Unpacked Size
6.34 kB
Size
2.79 kB
File Count
4
NPM Version
10.2.4
Node Version
20.6.1
Published on
Dec 08, 2023
Cumulative downloads
Total Downloads
Last Day
600%
7
Compared to previous day
Last Week
114.3%
15
Compared to previous week
Last Month
0%
32
Compared to previous month
Last Year
25.3%
580
Compared to previous year
1
3
A simple addon to the excellent bfj module which provides a simple parser for very large JSON files in the form of collections.
Assumptions:
JSON.parse
)While BFJ is excellent at working with very large JSON files sometimes you just want to be able to read all items in a collection without having to do the parsing yourself.
The below example demonstrates how to read in a very large JSON file and emits bfjc
every time we can parse an object within the collection:
1bfjc(fs.createReadStream('someBigFile.json')) 2 .on('bfjc', data => ... do something with the object entity ...) 3 .on(bfj.events.end, ()=> ... we have finished reading ...)
The main exported function functions exactly the same as bfj.walk and takes exactly the same input stream and options. See that functions documentation for more details.
Additional options are listed below:
Option | Type | Default | Description |
---|---|---|---|
pause | boolean | true | Instruct the stream to pause before each bfjc emit event |
allowArrays | boolean | false | Allow nested array objects e.g. [['One'], [['Two']]] |
allowScalars | boolean | false | Allow scalar types (strings, numebers, booleans) as object types |
NOTES:
pause
functionality assumes the events are syncronous not asyncronous. If you wish to wrap pausing in promises or other event driven functionality you will have to add your own code after disabling pause
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
4 existing vulnerabilities detected
Details
Reason
Found 1/18 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-16
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