Skip to content

binsarjr/node-email-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Email Extractor

npm

npm version lisence issues downloads month downloads

Extract emails from text and also from a site page

Includes

Requirements

Instalation

Instalation is done using npm install command

$ npm install node-email-extractor

Feutures

  • Extract email from plaintext
  • Extract emails from website content
  • this module already supports typescript

Usage

javascript

const email = require('node-email-extractor').default;

(async () => {
    var data = await email.url('https://www.****.com/contact-us/')
    console.log(data);
})()

var data = email.text(`Contact Details
Phone: +267 72301363 / 73316322

Email: [email protected]

Registered with: `)

console.log(data)

typescript

import EmailExtractor from "node-email-extractor";

(async () => {
    var data = await EmailExtractor.url('https://www.****.com/contact-us/')
    console.log(data);
})()

var data = EmailExtractor.text(`Contact Details
Phone: +267 72301363 / 73316322

Email: [email protected]

Registered with: `)

console.log(data)

results

{ domains: [ 'gmail.com' ], emails: [ '[email protected]' ] }
{ domains: [ 'gmail.com' ], emails: [ '[email protected]' ] }

Yes, it's really all you need to get started, Thank You ❤️