{"_id":"@andyrmitchell/email-reply-parser","name":"@andyrmitchell/email-reply-parser","dist-tags":{"latest":"1.6.1"},"versions":{"1.6.1":{"name":"@andyrmitchell/email-reply-parser","version":"1.6.1","description":"Dependency-free library for parsing plain text email content. Forked from https://github.com/crisp-oss/email-reply-parser/blob/master/test/test.js (itself based on https://github.com/willdurand/EmailReplyParser)","main":"lib/emailreplyparser.js","homepage":"https://github.com/andymitchell/email-reply-parser","type":"commonjs","repository":{"type":"git","url":"git://github.com/andymitchell/email-reply-parser.git"},"scripts":{"build_release":"npm run build_prepare && np","pkglint":"./build/publint_pipeable.sh","build_prepare":"npm run pkglint","test":"node ./node_modules/nodeunit/bin/nodeunit test/test.js"},"engines":{"node":">= 10.0.0"},"author":{"name":"Crisp IM SAS"},"license":"MIT","devDependencies":{"nodeunit":"v0.11.3","underscore":"v1.13.6"},"_id":"@andyrmitchell/email-reply-parser@1.6.1","gitHead":"157d9efd3d4cd0427df159f402f5d58615ccd751","bugs":{"url":"https://github.com/andymitchell/email-reply-parser/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-6bXHpsyPAZvpKJILrFUTby4jgtiE1Ml6UapV+U3Y7J7R0Fs7wGnc7V3RQDm25bpUVZdwssmPBaNL2Mv3TeA1Kg==","shasum":"e30fe2ddf2ad2e53be16605c292363f94aa5c9e7","tarball":"https://registry.npmjs.org/@andyrmitchell/email-reply-parser/-/email-reply-parser-1.6.1.tgz","fileCount":10,"unpackedSize":18325,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCo2Elw2vD+NnlbCrQqQRXtknwimZKu1BU+jtYGkeg/HgIhAMeDYJrrknOqWXu30ixyeZVgvZvJBHmd8IB+/jfMK5Qn"}]},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"directories":{},"maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/email-reply-parser_1.6.1_1718280703827_0.9161992772375358"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-13T12:11:43.749Z","1.6.1":"2024-06-13T12:11:43.960Z","modified":"2024-06-13T12:11:44.254Z"},"maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"description":"Dependency-free library for parsing plain text email content. Forked from https://github.com/crisp-oss/email-reply-parser/blob/master/test/test.js (itself based on https://github.com/willdurand/EmailReplyParser)","homepage":"https://github.com/andymitchell/email-reply-parser","repository":{"type":"git","url":"git://github.com/andymitchell/email-reply-parser.git"},"author":{"name":"Crisp IM SAS"},"bugs":{"url":"https://github.com/andymitchell/email-reply-parser/issues"},"license":"MIT","readme":"# Email Reply Parser\n\n[![Test and Build](https://github.com/crisp-oss/email-reply-parser/workflows/Test%20and%20Build/badge.svg?branch=master)](https://github.com/crisp-oss/email-reply-parser/actions?query=workflow%3A%22Test+and+Build%22) [![Build and Release](https://github.com/crisp-oss/email-reply-parser/workflows/Build%20and%20Release/badge.svg)](https://github.com/crisp-oss/email-reply-parser/actions?query=workflow%3A%22Build+and+Release%22) [![NPM](https://img.shields.io/npm/v/email-reply-parser.svg)](https://www.npmjs.com/package/email-reply-parser) [![Downloads](https://img.shields.io/npm/dt/email-reply-parser.svg)](https://www.npmjs.com/package/email-reply-parser)\n\n**Email Reply Parser is a dependency-free library to parse plain-text email replies and extract content**\n\nThis library supports most email replies, signatures and locales.\n\n**Fork rationale: be dependency free**\n\nIt's a fork of [https://github.com/crisp-oss/email-reply-parser/](https://github.com/crisp-oss/email-reply-parser/), but with the node dependency on re2 removed, so it's useable in browsers.\n\n**😘 Maintainer**: [@baptistejamin](https://github.com/baptistejamin)\n\n## Who uses it?\n\n<table>\n<tr>\n<td align=\"center\"><a href=\"https://crisp.chat/\"><img src=\"https://crisp.chat/favicon-256x256.png\" height=\"64\" /></a></td>\n</tr>\n<tr>\n<td align=\"center\">Crisp</td>\n</tr>\n</table>\n\n_👋 You use this library and you want to be listed there? [Contact us](https://crisp.chat/)._\n\n## Installation\n\nInstall the project using NPM:\n\n``` javascript\nnpm install --save email-reply-parser\n```\n\n## Features\n\nThis library is used at [Crisp](https://crisp.chat/) everyday with around 1 million inbound emails. Over the years, we improved this library so it can work with most emails.\n\n- Strip email replies like `On DATE, NAME <EMAIL> wrote:`\n- Supports around **10 locales**, including English, French, Spanish, Portuguese, Italian, Japanese, Chinese.\n- Removes signatures like `Sent from my iPhone`\n- Removes signatures like `Best wishes`\n\n## Usage\n\n``` javascript\nvar EmailReplyParser = require(\"email-reply-parser\");\n\nvar email =  new EmailReplyParser().read(MY_EMAIL_STRING);\n\nconsole.log(email.getVisibleText());\n```\n\n## Contributing\n\nFeel free to fork this project and submit fixes. We may adapt your code to fit the codebase.\n\nYou can run unit tests using:\n\n``` javascript\nnpm test\n```\n\n## Credits\n\n* GitHub\n* William Durand <william.durand1@gmail.com>\n* Crisp IM\n\n## License\n\nemail-reply-parser is released under the MIT License. See the bundled LICENSE file for details.\n\n","readmeFilename":"README.md"}