Skip to main content

postal-mime

Email parsing library for browser environments and serverless functions

npm install postal-mime
Zero Dependenciespostal-mime0 Dependencies~15KB minified

Zero Dependencies

Lightweight and self-contained. No external dependencies means faster installs, smaller bundles, and no supply chain concerns.

Universal Compatibilitypostal-mimeBrowserNode.jsNode.jsWeb WorkerCloudflare

Cloudflare Email Workers

Perfect for Cloudflare Email Workers. Parse incoming emails, extract attachments, store to R2, forward based on content, and more.

View Cloudflare Guide
TypeScript ReadyTSFull type definitions included

TypeScript Ready

Full TypeScript definitions included. Get complete type safety and excellent IDE support out of the box.