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: [email protected]
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: [email protected]
Registered with: `)
console.log(data)
{ domains: [ 'gmail.com' ], emails: [ '[email protected]' ] }
{ domains: [ 'gmail.com' ], emails: [ '[email protected]' ] }
Yes, it's really all you need to get started, Thank You ❤️