Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

extract-email

autokent335MIT1.1.3

A simple email extractor for obfuscated emails.

email, email-address, extractor, obfuscated, obfuscated-email, obfuscated-emails, parse, regex, obfuscator, obfuscation, harvester, scraper, crawler, mail, spider, parser, rfc5322, 5322, dot, at, dotwords, atwords, dotword, atword, dot-word, at-word

readme

extract-email

A simple email extractor for obfuscated emails.

logo

version downloads node status

Installation

npm install extract-email

Usage

String Extract

const ExtractEmail = require('extract-email');

let dotwords = [".","[dot]","-dot-"];
let atwords = ["@","[at]","-at-"];
let res = ExtractEmail.String("mehmet.kozan[at]live[dot]com",atwords,dotwords);
console.log(res[0].email);//mehmet.kozan@live.com

Text File Extract (not implemented)

const ExtractEmail = require('extract-email');

//not implemented

CSV Extract (not implemented)

const ExtractEmail = require('extract-email');

//not implemented

Excel Extract (not implemented)

const ExtractEmail = require('extract-email');

//not implemented

Test

mocha or npm test

check test folder and QUICKSTART.js for extra usage.