{"id":23275696,"url":"https://github.com/myrotvorets/buffer-stream","last_synced_at":"2025-09-07T02:36:22.657Z","repository":{"id":36975937,"uuid":"285399646","full_name":"myrotvorets/buffer-stream","owner":"myrotvorets","description":"Converts a Buffer into a Readable Stream","archived":false,"fork":false,"pushed_at":"2025-08-25T00:59:35.000Z","size":3139,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-25T03:39:53.039Z","etag":null,"topics":["buffer-stream","buffer-to-stream","stream-buffer","stream-to-buffer"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myrotvorets.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-08-05T20:42:15.000Z","updated_at":"2025-08-25T00:59:38.000Z","dependencies_parsed_at":"2023-12-22T03:52:44.450Z","dependency_job_id":"2f723aa7-3e36-4f84-a8e5-161a12f0ad97","html_url":"https://github.com/myrotvorets/buffer-stream","commit_stats":{"total_commits":946,"total_committers":3,"mean_commits":315.3333333333333,"dds":"0.32558139534883723","last_synced_commit":"1db43f4053a7209a4ab8effafaeba575cff96dfd"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/myrotvorets/buffer-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Fbuffer-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Fbuffer-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Fbuffer-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Fbuffer-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myrotvorets","download_url":"https://codeload.github.com/myrotvorets/buffer-stream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Fbuffer-stream/sbom","scorecard":{"id":111875,"data":{"date":"2025-08-04","repo":{"name":"github.com/myrotvorets/buffer-stream","commit":"93d86d6b4a865d040781d706c72bb5ff04f6dfbf"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":7.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":10,"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"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":9,"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"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Token-Permissions","score":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:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","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"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (30) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T12:28:26.124Z","repository_id":36975937,"created_at":"2025-08-15T12:28:26.124Z","updated_at":"2025-08-15T12:28:26.124Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273988567,"owners_count":25203114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["buffer-stream","buffer-to-stream","stream-buffer","stream-to-buffer"],"created_at":"2024-12-19T21:15:59.530Z","updated_at":"2025-09-07T02:36:22.628Z","avatar_url":"https://github.com/myrotvorets.png","language":"TypeScript","readme":"# buffer-stream\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=myrotvorets_buffer-stream\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=myrotvorets_buffer-stream)\n[![Build and Test](https://github.com/myrotvorets/buffer-stream/actions/workflows/build.yml/badge.svg)](https://github.com/myrotvorets/buffer-stream/actions/workflows/build.yml)\n\nConverts a Buffer into a Readable Stream.\n\nSince version 1.1.0, it provides a helper to read the entire stream into a Buffer.\n\nSince version 1.3.0, it provides a writable stream that stores the result in a buffer.\n\n## Usage\n\n```js\nimport { BufferStream, WritableBufferStream, streamToBuffer } from '@myrotvorets/buffer-stream';\n\n// BufferStream\nconst buf = Buffer.from('123');\nconst stream = new BufferStream(buf);\n\n// streamToBuffer\nstreamToBuffer(stream).then((buffer) =\u003e { /* ... */ })\n\n// WritableBufferStream\nconst stream = new WritableBufferStream();\nstream.write('something', (err) =\u003e {\n    if (!err) {\n        console.log(stream.toString());\n\n        stream.clear(); // Clear the internal buffer\n    }\n});\n\nawait stream.writeP('something else');\n```\n\nSee the [`test`](test) directory for usage examples.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyrotvorets%2Fbuffer-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyrotvorets%2Fbuffer-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyrotvorets%2Fbuffer-stream/lists"}