Gathering detailed insights and metrics for minipass-sized
Gathering detailed insights and metrics for minipass-sized
Gathering detailed insights and metrics for minipass-sized
Gathering detailed insights and metrics for minipass-sized
A Minipass stream that raises an error if you get a different number of bytes than expected
npm install minipass-sized
99.9
Supply Chain
78.9
Quality
75.1
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
5 Stars
13 Commits
1 Forks
3 Watching
10 Branches
1 Contributors
Updated on 08 May 2021
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-5.4%
2,095,610
Compared to previous day
Last week
2%
11,937,192
Compared to previous week
Last month
7.1%
50,212,968
Compared to previous month
Last year
31.6%
525,134,814
Compared to previous year
A Minipass stream that raises an error if you get a different number of bytes than expected.
Use just like any old minipass stream, but
provide a size
option to the constructor.
The size
option must be a positive integer, smaller than
Number.MAX_SAFE_INTEGER
.
1const MinipassSized = require('minipass-sized') 2// figure out how much data you expect to get 3const expectedSize = +headers['content-length'] 4const stream = new MinipassSized({ size: expectedSize }) 5stream.on('error', er => { 6 // if it's the wrong size, then this will raise an error with 7 // { found: <number>, expect: <number>, code: 'EBADSIZE' } 8}) 9response.pipe(stream)
Caveats: this does not work with objectMode
streams, and will throw a
TypeError
from the constructor if the size argument is missing or
invalid.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
32 existing vulnerabilities detected
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