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
npm install bfj-collections
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
19 Commits
1 Forks
3 Watching
1 Branches
2 Contributors
Updated on 08 Dec 2023
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-55.9%
26
Compared to previous week
Last month
462.5%
135
Compared to previous month
Last year
64.8%
585
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
3 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/18 approved changesets -- 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 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