{"id":18901136,"url":"https://github.com/regular/binary-stream-replace","last_synced_at":"2025-07-19T22:04:48.672Z","repository":{"id":26470299,"uuid":"29921942","full_name":"regular/binary-stream-replace","owner":"regular","description":"a transform-stream that efficiently replaces sequences of bytes in a binary stream, for Node and browsers.","archived":false,"fork":false,"pushed_at":"2015-06-03T09:11:18.000Z","size":161,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T19:51:46.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/regular.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-27T16:06:00.000Z","updated_at":"2018-12-04T15:29:10.000Z","dependencies_parsed_at":"2022-08-29T18:11:12.508Z","dependency_job_id":null,"html_url":"https://github.com/regular/binary-stream-replace","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/regular/binary-stream-replace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fbinary-stream-replace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fbinary-stream-replace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fbinary-stream-replace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fbinary-stream-replace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regular","download_url":"https://codeload.github.com/regular/binary-stream-replace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fbinary-stream-replace/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265514858,"owners_count":23780362,"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","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":[],"created_at":"2024-11-08T08:55:18.779Z","updated_at":"2025-07-19T22:04:48.626Z","avatar_url":"https://github.com/regular.png","language":"JavaScript","readme":"[![npm version](https://badge.fury.io/js/binary-stream-replace.svg)](http://badge.fury.io/js/binary-stream-replace)\n[![browser support](https://ci.testling.com/regular/binary-stream-replace.png)](https://ci.testling.com/regular/binary-stream-replace)\n\nbinary-stream-replace\n===\nA transform-stream for Node and browsers that efficeintly replaces sequences of bytes in a binary stream. Can be restricted to replace first n occurrences only.\n\nUsage\n---\n\n``` js\nvar ReplaceStream = require('binary-stream-replace');\n\n// replace first 10 occurrences of byte sequence `fe fe` with\n// `00 00 01`\nvar rs = ReplaceStream(\n    new Buffer([0xfe, 0xfe]),\n    new Buffer([0x00, 0x00, 0x01]),\n    { maxOccurrences: 10 }\n);\n\nprocess.stdin.pipe(rs).pipe(process.stdout); \n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Fbinary-stream-replace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregular%2Fbinary-stream-replace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Fbinary-stream-replace/lists"}