{"id":15663204,"url":"https://github.com/mafintosh/binary-message-stream","last_synced_at":"2025-05-06T10:14:14.182Z","repository":{"id":65994625,"uuid":"312623265","full_name":"mafintosh/binary-message-stream","owner":"mafintosh","description":"Duplex stream that allows you to send messages, including binary messages","archived":false,"fork":false,"pushed_at":"2020-11-18T17:41:01.000Z","size":4,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T18:51:28.060Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mafintosh.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":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-11-13T16:10:00.000Z","updated_at":"2020-12-02T10:00:50.000Z","dependencies_parsed_at":"2024-01-17T15:04:44.330Z","dependency_job_id":"55f446f0-bd2b-4be4-bc40-a90cb4ea4d58","html_url":"https://github.com/mafintosh/binary-message-stream","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"4d80e34dbe49ec333f778c353126abc799603603"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fbinary-message-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fbinary-message-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fbinary-message-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fbinary-message-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mafintosh","download_url":"https://codeload.github.com/mafintosh/binary-message-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252663605,"owners_count":21784788,"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-10-03T13:35:52.481Z","updated_at":"2025-05-06T10:14:14.162Z","avatar_url":"https://github.com/mafintosh.png","language":"JavaScript","readme":"# binary-message-stream\n\nSimple duplex stream that allows you to send messages, including binary messages.\n\n```\nnpm install binary-message-stream\n```\n\n## Usage\n\n``` js\nconst Messenger = require('binary-message-stream')\n\nconst a = new Messenger()\nconst b = new Messenger()\n\na.pipe(b).pipe(a)\n\na.send('hi')\na.send(Buffer.alloc(2))\na.send({ yes: Buffer.from('yes') })\n\nb.on('message', function (message) {\n  // prints:\n  // 'hi'\n  // \u003cBuffer 00 00\u003e\n  // { yes: \u003cBuffer 79 65 73\u003e }\n  console.log(message)\n})\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":["Utilities"],"sub_categories":["React Components"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafintosh%2Fbinary-message-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmafintosh%2Fbinary-message-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafintosh%2Fbinary-message-stream/lists"}