{"repo":"postalsys/postal-mime","free":true,"listed":false,"github":"https://github.com/postalsys/postal-mime","clone":"git clone https://github.com/postalsys/postal-mime.git","description":"Email parser for browser and serverless environments","language":"JavaScript","stars":544,"topics":["attachments","email","mime","parser","serverless"],"license":null,"category":"auth-billing-email","readme_excerpt":"postal-mime postal-mime is an email parsing library for Node.js, browsers (including Web Workers), and serverless environments (like Cloudflare Email Workers). It takes in a raw email message (RFC822 format) and outputs a structured object containing headers, recipients, attachments, and more. [!TIP] PostalMime is developed by the makers of EmailEngine, a self-hosted email gateway that provides a REST API for IMAP and SMTP servers and sends webhooks whenever something changes in registered accounts. Features - Browser & Node.js compatible - Works in browsers, Web Workers, Node.js, and serverless environments - TypeScript support - Fully typed with comprehensive type definitions - Zero dependencies - No external dependencies - RFC compliant - Follows RFC 2822/5322 email standards - Handles complex MIME structures - Multipart messages, nested parts, attachments - Security limits - Built-in protection against deeply nested messages and oversized headers [!NOTE] Full documentation is available at postal-mime.postalsys.com. Table of Contents - Source - Demo - Installation - Usage - Browser - Node.js - Cloudflare Email Workers - TypeScript Support - API - PostalMime.parse() - Utility Functions - addressParser() - decodeWords() - License --- Source The source code is available on GitHub. Demo Try out a live demo using the example page. Installation Install the module from npm: Usage You can import the PostalMime class differently depending on your environment: Browser To use PostalM","default_branch":null,"files":null,"tree":[],"storefront":"/r/postalsys","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/postalsys/postal-mime/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}