Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including mailparser with all npm packages installed. Try it out:

var mailparser = require("mailparser")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

mailparser v3.0.0

Parse e-mails

mailparser

Nodemailer

Advanced email parser for Node.js. Everything is handled as a stream which should make it able to parse even very large messages (100MB+) with relatively low overhead.

Installation

Free, EUPL-licensed version

First install the module from npm:

$ npm install mailparser

next import the mailparser object into your script:

const mailparser = require('mailparser');

MIT version

MIT-licensed version is available for Postal Systems subscribers.

First install the module from Postal Systems private registry:

$ npm install @postalsys/mailparser

next import the mailparser object into your script:

const mailparser = require('@postalsys/mailparser');

If you have already built your application using the free version of mailparser and do not want to modify require statements in your code, you can install the MIT-licensed version as an alias for "mailparser".

$ npm install mailparser@npm:@postalsys/mailparser

This way you can keep using the old module name

const mailparser = require('mailparser');

Usage

See mailparser homepage for documentation and terms.

License

Licensed under European Union Public Licence (EUPL) v1.1 or later.

MIT-licensed version of mailparser is available for Postal Systems subscribers.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free