{"id":15704186,"url":"https://github.com/tootallnate/node-multipart-stack","last_synced_at":"2025-08-20T05:04:45.307Z","repository":{"id":1418172,"uuid":"1513066","full_name":"TooTallNate/node-multipart-stack","owner":"TooTallNate","description":"A `StreamStack` subclass that parses \"multipart\" data, often from SMTP or HTTP.","archived":false,"fork":false,"pushed_at":"2011-11-07T22:00:43.000Z","size":116,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T00:07:05.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/TooTallNate.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":"2011-03-22T20:17:16.000Z","updated_at":"2024-09-17T03:39:29.000Z","dependencies_parsed_at":"2022-07-29T13:09:47.565Z","dependency_job_id":null,"html_url":"https://github.com/TooTallNate/node-multipart-stack","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TooTallNate%2Fnode-multipart-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TooTallNate%2Fnode-multipart-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TooTallNate%2Fnode-multipart-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TooTallNate%2Fnode-multipart-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TooTallNate","download_url":"https://codeload.github.com/TooTallNate/node-multipart-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253778227,"owners_count":21962833,"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-03T20:10:39.094Z","updated_at":"2025-05-12T16:41:53.557Z","avatar_url":"https://github.com/TooTallNate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"node-multipart-stack\n====================\n### A `StreamStack` subclass that parses \"multipart\" data, often from SMTP or HTTP.\n\n\nThis module implements [Section 7.2 of RFC 1341][rfc1341]. It can be easily used\nin conjunction with any node `ReadableStream`.\n\n\nUsage\n-----\n\nHere's a simple HTTP server that can parse multipart requests, like from an HTML\nmultipart form.\n\n``` javascript\nvar http = require('http');\nvar multipart = require('multipart-stack');\n\nvar server = http.createServer(function(req, res) {\n\n  // includes a built-in \"Content-Type Parser\"\n  var parsed = multipart.parseContentType(req.headers['content-type']);\n\n  if (parsed.type === 'multipart') {\n    var parser = new multipart.Parser(req, parsed.boundary);\n\n    // A 'part' event gets fired once per individual \"part\" of the multipart body\n    parser.on('part', function (part) {\n      // the 'part' arg is a `ReadableStream` that also emits a 'headers' event.\n      part.on('headers', function(headers) {\n        console.log(headers);\n      });\n      part.pipe(process.stdout, { end: false });\n    });\n  } else {\n    // non-file-upload logic\n  }\n\n});\n```\n\n[Node]: http://nodejs.org\n[rfc1341]: http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftootallnate%2Fnode-multipart-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftootallnate%2Fnode-multipart-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftootallnate%2Fnode-multipart-stack/lists"}