🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

email-reply-parser

Package Overview
Dependencies
Maintainers
3
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-reply-parser

Node library for parsing plain text email content. Based on https://github.com/willdurand/EmailReplyParser

2.0.1
latest
Source
npm
Version published
Weekly downloads
16K
-17.43%
Maintainers
3
Weekly downloads
 
Created
Source

Email Reply Parser

Test and Build Build and Release NPM Downloads

Email Reply Parser is a node library to parse plain-text email replies and extract content

This library supports most email replies, signatures and locales.

😘 Maintainer: @baptistejamin

Who uses it?

Crisp

👋 You use this library and you want to be listed there? Contact us.

Installation

Install the project using NPM:

npm install --save email-reply-parser

RE2 Support

By default, the library relies on the RE2 regex engine, which provides better performance and avoids issues like ReDOS. By default, RE2 will be installed as a peer dependency.

If you want to explicitly exclude RE2, then npm uninstall re2.

Features

This library is used at Crisp everyday with around 1 million inbound emails. Over the years, we improved this library so it can work with most emails.

  • Strip email replies like On DATE, NAME <EMAIL> wrote:
  • Supports around 10 locales, including English, French, Spanish, Portuguese, Italian, Japanese, Chinese.
  • Removes signatures like Sent from my iPhone
  • Removes signatures like Best wishes

Usage

var EmailReplyParser = require("email-reply-parser");

var email =  new EmailReplyParser().read(MY_EMAIL_STRING);

console.log(email.getVisibleText());

Contributing

Feel free to fork this project and submit fixes. We may adapt your code to fit the codebase.

You can run unit tests using:

npm test

Credits

License

email-reply-parser is released under the MIT License. See the bundled LICENSE file for details.

FAQs

Package last updated on 29 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts