{"id":16698006,"url":"https://github.com/arlac77/length-prefix-framed-stream","last_synced_at":"2025-04-10T02:54:00.344Z","repository":{"id":37792896,"uuid":"283731188","full_name":"arlac77/length-prefix-framed-stream","owner":"arlac77","description":"Socket framing with length prefixes","archived":false,"fork":false,"pushed_at":"2025-03-17T13:02:49.000Z","size":1518,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T01:03:07.064Z","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":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arlac77.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-30T09:42:17.000Z","updated_at":"2025-03-17T13:02:52.000Z","dependencies_parsed_at":"2023-02-14T10:46:49.542Z","dependency_job_id":"bd1417d1-d0d1-4422-b0b1-a8c18737a7ca","html_url":"https://github.com/arlac77/length-prefix-framed-stream","commit_stats":{"total_commits":434,"total_committers":5,"mean_commits":86.8,"dds":"0.16820276497695852","last_synced_commit":"e539e1804f29e80d9655efb42c6f5d33a8872e39"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Flength-prefix-framed-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Flength-prefix-framed-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Flength-prefix-framed-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Flength-prefix-framed-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arlac77","download_url":"https://codeload.github.com/arlac77/length-prefix-framed-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248147394,"owners_count":21055541,"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-12T17:50:17.372Z","updated_at":"2025-04-10T02:54:00.309Z","avatar_url":"https://github.com/arlac77.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/length-prefix-framed-stream.svg)](https://www.npmjs.com/package/length-prefix-framed-stream)\n[![License](https://img.shields.io/badge/License-0BSD-blue.svg)](https://spdx.org/licenses/0BSD.html)\n[![bundlejs](https://deno.bundlejs.com/?q=length-prefix-framed-stream\\\u0026badge=detailed)](https://bundlejs.com/?q=length-prefix-framed-stream)\n[![downloads](http://img.shields.io/npm/dm/length-prefix-framed-stream.svg?style=flat-square)](https://npmjs.org/package/length-prefix-framed-stream)\n[![GitHub Issues](https://img.shields.io/github/issues/arlac77/length-prefix-framed-stream.svg?style=flat-square)](https://github.com/arlac77/length-prefix-framed-stream/issues)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Farlac77%2Flength-prefix-framed-stream%2Fbadge\\\u0026style=flat)](https://actions-badge.atrox.dev/arlac77/length-prefix-framed-stream/goto)\n[![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![Known Vulnerabilities](https://snyk.io/test/github/arlac77/length-prefix-framed-stream/badge.svg)](https://snyk.io/test/github/arlac77/length-prefix-framed-stream)\n[![Coverage Status](https://coveralls.io/repos/arlac77/length-prefix-framed-stream/badge.svg)](https://coveralls.io/github/arlac77/length-prefix-framed-stream)\n\n# length-prefix-framed-stream\n\nStream framing with length prefixes\n\n```js\nimport { pipeline } from \"stream\";\nimport { Encode } from \"length-prefix-framed-stream\";\n\nconst encode = new Encode();\n\npipeline(encode, aSendStream, e =\u003e {});\n\nencode.write(\"message 1\");\nencode.write(\"message 2\");\n```\n\n```js\nimport { pipeline } from \"stream\";\nimport { Decode } from \"length-prefix-framed-stream\";\n\nconst decode = new Decode({ objectMode: true, encoding: \"utf8\" });\n\npipeline(aReceiveStream, decode, e =\u003e {});\n\nfor await (const message of decode) {\n    console.log(message); // whole messages as put in above\n}\n```\n\n# API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n## Table of Contents\n\n# install\n\nWith [npm](http://npmjs.org) do:\n\n```shell\nnpm install length-prefix-framed-stream\n```\n\n# license\n\nBSD-2-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farlac77%2Flength-prefix-framed-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farlac77%2Flength-prefix-framed-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farlac77%2Flength-prefix-framed-stream/lists"}