{"id":15979148,"url":"https://github.com/perry-mitchell/multi-part-stream-parser","last_synced_at":"2026-01-20T07:02:06.520Z","repository":{"id":222631870,"uuid":"756848706","full_name":"perry-mitchell/multi-part-stream-parser","owner":"perry-mitchell","description":"Parse multi-part streams","archived":false,"fork":false,"pushed_at":"2024-04-05T18:36:32.000Z","size":383,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-21T03:30:55.578Z","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/perry-mitchell.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-02-13T12:35:27.000Z","updated_at":"2024-04-05T18:36:32.000Z","dependencies_parsed_at":"2024-02-15T11:28:41.280Z","dependency_job_id":"5733887b-14a6-4ec2-a846-39ae6cdc74df","html_url":"https://github.com/perry-mitchell/multi-part-stream-parser","commit_stats":null,"previous_names":["perry-mitchell/multi-part-stream-parser"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/perry-mitchell/multi-part-stream-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fmulti-part-stream-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fmulti-part-stream-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fmulti-part-stream-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fmulti-part-stream-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perry-mitchell","download_url":"https://codeload.github.com/perry-mitchell/multi-part-stream-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fmulti-part-stream-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28597985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-07T23:41:24.659Z","updated_at":"2026-01-20T07:02:06.494Z","avatar_url":"https://github.com/perry-mitchell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multi-Part-Stream-Parser\n\u003e Parse multi-part form data streams\n\n## About\n\n**Multi-Part-Stream-Parser** provides a capture mechanism for parsing multi-part encoded streams, allowing consumers to listen for each section (split by boundary) of a multi-part document.\n\n## Installation\n\nSimply install by running `npm install multi-part-stream-parser --save`.\n\nCompatible with NodeJS 18 and up.\n\n## Usage\n\nPass a readable stream of multi-part data to `parseMultiPartStream`:\n\n```typescript\nimport { ParseEvent, parseMultiPartStream } from \"multi-part-stream-parser\";\n\n// ...\n\nconst stream = getMultiPartStream(); // get a stream somehow\n\nconst emitter = parseMultiPartStream(stream);\nemitter.on(ParseEvent.SectionHeaders, (sectionName, headers) =\u003e {\n    // sectionName is a string, or null of not specified\n    // headers is an object containing lower-cased headers\n});\nemitter.on(ParseEvent.SectionContent, (sectionName, contentBuffer) =\u003e {\n    // contentBuffer is a buffer that contains the full\n    // contents of the section\n});\nemitter.on(ParseEvent.SectionContentStream, (sectionName, contentStream) =\u003e {\n    // contentStream is a readable stream of the section\n    // contents\n});\n\n// ...\n\n// Cleanup\nemitter.destroy();\nawait emitter.whenComplete();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperry-mitchell%2Fmulti-part-stream-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperry-mitchell%2Fmulti-part-stream-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperry-mitchell%2Fmulti-part-stream-parser/lists"}