Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

mailstrip

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailstrip

mailstrip =========

latest
Source
npmnpm
Version
0.0.9
Version published
Weekly downloads
221
92.17%
Maintainers
1
Weekly downloads
 
Created
Source

mailstrip

simple function that intent to strip signature and history from an email to return only the content body. Its just a simple list of regexp that defines where the email need to be truncated each regexp has its own test.

Feel free to contribute by adding, a regexp and a testcase (tests are built with [mocha] 1 & [chai] 2)

install

npm install mailstrip

usage

var mailstrip = require('mailstrip')
  , content = mailstrip(emailBody);

test

# build first
$ cake build

# run mocha
$ mocha

FAQs

Package last updated on 04 Apr 2014

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