Extract emails from text and also from a site page
Instalation is done using npm install
command
$ npm install node-email-extractor
- Extract email from plaintext
- Extract emails from website content
- this module already supports typescript
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: kumindaculture@gmail.com
Registered with: `)
console.log(data)
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: kumindaculture@gmail.com
Registered with: `)
console.log(data)
{ domains: [ 'gmail.com' ], emails: [ 'kumindaculture@gmail.com' ] }
{ domains: [ 'gmail.com' ], emails: [ 'kumindaculture@gmail.com' ] }
Yes, it's really all you need to get started, Thank You ❤️