Gathering detailed insights and metrics for @myrotvorets/buffer-stream
Gathering detailed insights and metrics for @myrotvorets/buffer-stream
Gathering detailed insights and metrics for @myrotvorets/buffer-stream
Gathering detailed insights and metrics for @myrotvorets/buffer-stream
npm install @myrotvorets/buffer-stream
69.2
Supply Chain
75.6
Quality
76.8
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
1 Stars
1,056 Commits
3 Watching
1 Branches
1 Contributors
Updated on 28 Nov 2024
TypeScript (100%)
Cumulative downloads
Total Downloads
Last day
46%
73
Compared to previous day
Last week
79.6%
476
Compared to previous week
Last month
27.6%
1,497
Compared to previous month
Last year
169.7%
8,724
Compared to previous year
Converts a Buffer into a Readable Stream.
Since version 1.1.0, it provides a helper to read the entire stream into a Buffer.
Since version 1.3.0, it provides a writable stream that stores the result in a buffer.
1import { BufferStream, WritableBufferStream, streamToBuffer } from '@myrotvorets/buffer-stream'; 2 3// BufferStream 4const buf = Buffer.from('123'); 5const stream = new BufferStream(buf); 6 7// streamToBuffer 8streamToBuffer(stream).then((buffer) => { /* ... */ }) 9 10// WritableBufferStream 11const stream = new WritableBufferStream(); 12stream.write('something', (err) => { 13 if (!err) { 14 console.log(stream.toString()); 15 16 stream.clear(); // Clear the internal buffer 17 } 18}); 19 20await stream.writeP('something else');
See the test
directory for usage examples.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
license file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
0 existing vulnerabilities detected
Reason
dependency not pinned by hash detected -- score normalized to 9
Details
Reason
Found 0/27 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-18
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