node-email-extractor
v1.0.3
Published
Extract emails from text and also from a site page
Downloads
459
Maintainers
Readme
Node Email Extractor
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 ❤️