Installations
npm install @myrotvorets/buffer-stream
Score
69.2
Supply Chain
75.6
Quality
76.8
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Developer
myrotvorets
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
20.17.0
NPM Version
10.8.2
Statistics
1 Stars
1,056 Commits
3 Watching
1 Branches
1 Contributors
Updated on 28 Nov 2024
Languages
TypeScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
16,769
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
buffer-stream
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.
Usage
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
- Info: security policy file detected: SECURITY.md:1
- Info: Found linked content: SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1
- Info: Found text in security policy: SECURITY.md:1
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
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/audit-signatures.yml:18
- Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:27
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:28
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:14
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/lint.yml:24
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/lint.yml:47
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/npm-publish.yml:26
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/npm-publish.yml:49
- Warn: jobLevel 'packages' permission set to 'write': .github/workflows/npm-publish.yml:50
- Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/npm-publish.yml:51
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/push-tag.yml:22
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/push-tag.yml:44
- Info: topLevel 'contents' permission set to 'read': .github/workflows/audit-signatures.yml:11
- Info: topLevel 'contents' permission set to 'read': .github/workflows/build.yml:12
- Info: topLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:15
- Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:7
- Info: topLevel 'contents' permission set to 'read': .github/workflows/lint.yml:11
- Info: topLevel 'contents' permission set to 'read': .github/workflows/npm-publish.yml:19
- Info: topLevel 'contents' permission set to 'read': .github/workflows/package-audit.yml:14
- Info: topLevel 'contents' permission set to 'read': .github/workflows/push-tag.yml:9
- Info: topLevel 'contents' permission set to 'read': .github/workflows/sonarscan.yml:13
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
SAST tool is run on all commits
Details
- Info: SAST configuration detected: CodeQL
- Info: all commits (30) are checked with a SAST tool
Reason
0 existing vulnerabilities detected
Reason
dependency not pinned by hash detected -- score normalized to 9
Details
- Warn: npmCommand not pinned by hash: .github/workflows/audit-signatures.yml:42
- Info: 8 out of 8 GitHub-owned GitHubAction dependencies pinned
- Info: 21 out of 21 third-party GitHubAction dependencies pinned
- Info: 1 out of 2 npmCommand dependencies pinned
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
- Warn: no fuzzer integrations found
Score
7.9
/10
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