General questions
What does 'meros' mean?
What does 'meros' mean?
What is Meros used for?
What is Meros used for?
- GraphQL
@deferand@streamdirectives - Streaming responses from servers
- File upload progress tracking
- Any scenario where data is sent in multiple parts over HTTP
Does Meros have any dependencies?
Does Meros have any dependencies?
Is Meros production-ready?
Is Meros production-ready?
- Comprehensive test suite
- TypeScript definitions
- Stable API (v1.3.2)
- Active maintenance
How does Meros compare to other multipart parsers?
How does Meros compare to other multipart parsers?
- 81% faster than it-multipart in Node.js
- 59% faster than fetch-multipart-graphql in browsers
- Smaller bundle size
- Zero dependencies
- Passes all correctness tests (some competitors fail)
Compatibility questions
Does Meros work in browsers?
Does Meros work in browsers?
- ReadableStream support
- TextDecoder support
- Async iterator support
Does Meros work in Node.js?
Does Meros work in Node.js?
Can I use Meros with TypeScript?
Can I use Meros with TypeScript?
Does Meros work with Deno or Bun?
Does Meros work with Deno or Bun?
Usage questions
What happens if the response is not multipart?
What happens if the response is not multipart?
How do I know if a part is JSON?
How do I know if a part is JSON?
json property on each part:Content-Type: application/json.Can I access headers from each part?
Can I access headers from each part?
headers object:What is the 'multiple' option?
What is the 'multiple' option?
multiple option changes the yielding behavior to return arrays of parts instead of individual parts:Does Meros handle the preamble and epilogue?
Does Meros handle the preamble and epilogue?
- Preamble: Content before the first boundary
- Epilogue: Content after the final boundary
Can I use Meros with RxJS?
Can I use Meros with RxJS?
Can I use Meros with Relay?
Can I use Meros with Relay?
@defer and @stream:Technical questions
What content types does Meros support?
What content types does Meros support?
multipart/* content type:multipart/mixed(most common)multipart/form-data- Custom multipart types
- Auto-parses
application/json - Returns raw data (Buffer/string) for everything else
Does Meros support nested multiparts?
Does Meros support nested multiparts?
- No
/alternative,/digest, or/parallelsubtypes - No nested multipart structures
How does Meros handle UTF-8?
How does Meros handle UTF-8?
- Browser: Uses
TextDecoderwith{ stream: true } - Node: Uses Buffer’s built-in UTF-8 handling
What if the boundary is not in the Content-Type header?
What if the boundary is not in the Content-Type header?
- as the boundary if none is specified. However, this will likely fail to parse correctly.Always ensure your server sends:Is Meros RFC compliant?
Is Meros RFC compliant?
- Basic multipart parsing
- Boundary detection
- Header parsing
- Preamble/epilogue handling
/alternative,/digest,/parallelsubtypes- Nested multiparts
Contributing and support
How can I contribute to Meros?
How can I contribute to Meros?
- Report bugs via GitHub Issues
- Submit pull requests for bug fixes or features
- Improve documentation
- Share your use cases
How can I support the author?
How can I support the author?
What license does Meros use?
What license does Meros use?
- Use it commercially
- Modify it
- Distribute it
- Use it privately
Can I copy Meros code?
Can I copy Meros code?
This library is simple, a mere few hundred bytes. It’s easy to copy, and easy to alter. If you do, that is fine ❤️ I’m all for the freedom of software. But please give credit where credit is due.Please provide attribution if you use or modify the code.
Still have questions?
If your question isn’t answered here:- Check the API Reference for detailed API documentation
- Review the Troubleshooting guide for common issues
- Browse the examples on GitHub
- Search or open an issue on GitHub