# emails-in-string

> Extract emails from just about any string

Latest version **2.0.0** (published 2017-07-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install emails-in-string
pnpm add emails-in-string
yarn add emails-in-string
bun add emails-in-string
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-07-09 |
| First published | 2017-03-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.9.5 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aaron Cunnington |
| Maintainers | azcn2503 |

## Links

- npm: https://www.npmjs.com/package/emails-in-string
- Repository: https://github.com/azcn2503/emails-in-string
- Homepage: https://github.com/azcn2503/emails-in-string#readme
- Issues: https://github.com/azcn2503/emails-in-string/issues
- npm.io page: https://npm.io/package/emails-in-string

## Recent versions

- 2.0.0 (latest) — 2017-07-09
- 1.1.2 — 2017-03-14
- 1.1.1 — 2017-03-13
- 1.1.0 — 2017-03-13
- 1.0.0 — 2017-03-10

## README

# Emails in String ✉️

[![Build Status](https://travis-ci.org/azcn2503/emails-in-string.svg?branch=master)](https://travis-ci.org/azcn2503/emails-in-string)

Extract unique email addresses out of just about any string!

### How to use

```js
import emailsInString from "emails-in-string";

const uniqueEmails = emailsInString(`user@domain.com,
  "User at Domain" <user@domain.com>, user2@domain.com,
  user+something@domain.com`);
// ["user@domain.com", "user2@domain.com", "user+something@domain.com" ]
```

Enjoy!

### Tests

A suite of tests can be found in the [./__tests__](__tests__) directory and can be executed by running `npm run test`.

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