Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binsarjr/node-email-extractor
Extract emails from text and also from a site page
https://github.com/binsarjr/node-email-extractor
email email-extractor email-scraper extract-emails extractor hacktoberfest node-email-extractor nodejs scraper typescript
Last synced: 24 days ago
JSON representation
Extract emails from text and also from a site page
- Host: GitHub
- URL: https://github.com/binsarjr/node-email-extractor
- Owner: binsarjr
- License: mit
- Created: 2019-12-12T08:12:39.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-06T04:32:15.000Z (about 4 years ago)
- Last Synced: 2024-11-11T21:55:32.694Z (about 2 months ago)
- Topics: email, email-extractor, email-scraper, extract-emails, extractor, hacktoberfest, node-email-extractor, nodejs, scraper, typescript
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 18
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node Email Extractor
[![npm](https://nodei.co/npm/node-email-extractor.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/alexa-rank-nodejs)
![npm version](https://img.shields.io/npm/v/node-email-extractor)
![lisence](https://img.shields.io/npm/l/node-email-extractor)
[![issues](https://img.shields.io/github/issues/binsarjr/node-email-extractor)](https://github.com/binsarjr/node-email-extractor/issues)
![downloads month](https://img.shields.io/npm/dm/node-email-extractor)
![downloads](https://img.shields.io/npm/dt/node-email-extractor)Extract emails from text and also from a site page
# Includes
- [request-promise-native](https://www.npmjs.com/package/request-promise-native)# Requirements
- [NodeJS](https://nodejs.org/en/download/)
- [npm](https://www.npmjs.com/)# 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](https://www.typescriptlang.org/)# Usage
### javascript
```js
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 / 73316322Email: [email protected]
Registered with: `)
console.log(data)
```### typescript
```js
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 / 73316322Email: [email protected]
Registered with: `)
console.log(data)
```
### results
```js
{ domains: [ 'gmail.com' ], emails: [ '[email protected]' ] }
{ domains: [ 'gmail.com' ], emails: [ '[email protected]' ] }
```
Yes, it's really all you need to get started, Thank You ❤️