# node-email-extractor

> Extract emails from text and also from a site page

Latest version **1.0.3** (published 2019-12-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-email-extractor
pnpm add node-email-extractor
yarn add node-email-extractor
bun add node-email-extractor
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-12-13 |
| First published | 2019-12-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 14 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Binsar Dwi Jasuma |
| Maintainers | binsar05 |
| Keywords | email, extractor, scraper, crawler, email-extractor, email-scraper, email-crawler, node-email-extractor |

## Links

- npm: https://www.npmjs.com/package/node-email-extractor
- Repository: https://github.com/binsarjr/node-email-extractor
- Homepage: https://github.com/binsarjr/node-email-extractor#readme
- Issues: https://github.com/binsarjr/node-email-extractor/issues
- npm.io page: https://npm.io/package/node-email-extractor

## Dependencies (4)

- [request](https://npm.io/package/request.md) ^2.88.0
- [typings](https://npm.io/package/typings.md) ^2.1.1
- [typescript](https://npm.io/package/typescript.md) ^3.7.3
- [request-promise-native](https://npm.io/package/request-promise-native.md) ^1.0.8

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-12-13
- 1.0.2 — 2019-12-12
- 1.0.1 — 2019-12-12
- 1.0.0 — 2019-12-12

## 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 / 73316322

Email: kumindaculture@gmail.com

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 / 73316322

Email: kumindaculture@gmail.com

Registered with: `)

console.log(data)

```

### results
```js
{ 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 ❤️

---
_Source: https://npm.io/package/node-email-extractor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
