Gathering detailed insights and metrics for @vates/stream-reader
Gathering detailed insights and metrics for @vates/stream-reader
Gathering detailed insights and metrics for @vates/stream-reader
Gathering detailed insights and metrics for @vates/stream-reader
The global orchestration solution to manage and backup XCP-ng and XenServer.
npm install @vates/stream-reader
Typescript
Module System
Min. Node Version
Node Version
NPM Version
68.8
Supply Chain
89.5
Quality
82.6
Maintenance
100
Vulnerability
100
License
xo-lite-v0.10.1
Updated on May 07, 2025
xo-lite-v0.10.0
Updated on Apr 30, 2025
xo-lite-v0.9.1
Updated on Apr 02, 2025
xo-lite-v0.9.0
Updated on Mar 31, 2025
xo-lite-v0.8.0
Updated on Feb 27, 2025
xo-lite-v0.7.1
Updated on Feb 04, 2025
JavaScript (80.46%)
Vue (10.98%)
TypeScript (7.13%)
SCSS (0.38%)
Handlebars (0.32%)
CSS (0.31%)
Smarty (0.22%)
Pug (0.11%)
Shell (0.08%)
HTML (0.02%)
Total Downloads
2,551
Last Day
2
Last Week
17
Last Month
101
Last Year
1,476
NOASSERTION License
854 Stars
16,127 Commits
282 Forks
47 Watchers
275 Branches
107 Contributors
Updated on May 10, 2025
Minified
Minified + Gzipped
Latest Version
0.1.0
Package Id
@vates/stream-reader@0.1.0
Unpacked Size
5.58 kB
Size
2.12 kB
File Count
3
NPM Version
8.16.0
Node Version
18.7.0
Published on
Apr 26, 2023
Cumulative downloads
Total Downloads
Last Day
-50%
2
Compared to previous day
Last Week
-48.5%
17
Compared to previous week
Last Month
-2.9%
101
Compared to previous month
Last Year
55.5%
1,476
Compared to previous year
1
Efficiently reads and skips chunks of a given size in a stream
Installation of the npm package:
1npm install --save @vates/stream-reader
1import StreamReader from '@vates/stream-reader' 2 3const reader = new StreamReader(stream)
.read([size])
stream.read()
, a number of bytes can be specifiednull
if the stream has ended and no data has been read1const chunk = await reader.read(512)
.readStrict([size])
Similar behavior to readChunk
but throws if the stream ended before the requested data could be read.
1const chunk = await reader.readStrict(512)
.skip(size)
Skips a given number of bytes from a stream.
Returns the number of bytes actually skipped, which may be less than the requested size if the stream has ended.
1const bytesSkipped = await reader.skip(2 * 1024 * 1024 * 1024)
.skipStrict(size)
Skips a given number of bytes from a stream and throws if the stream ended before enough stream has been skipped.
1await reader.skipStrict(2 * 1024 * 1024 * 1024)
Contributions are very welcomed, either on the documentation or on the code.
You may:
No vulnerabilities found.
Reason
30 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
Project has not signed or included provenance with any releases.
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
35 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-04-28
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