# email-address-parser

> Small module to parse email address to user name and domain parts

Latest version **0.1.1** (published 2018-10-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install email-address-parser
pnpm add email-address-parser
yarn add email-address-parser
bun add email-address-parser
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-10-05 |
| First published | 2018-09-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andrew Ben |
| Maintainers | bigben |
| Keywords | utils |

## Links

- npm: https://www.npmjs.com/package/email-address-parser
- Repository: https://github.com/iriand/node-email-address-parser
- Issues: https://github.com/iriand/node-email-address-parser/issues
- npm.io page: https://npm.io/package/email-address-parser

## Recent versions

- 0.1.1 (latest) — 2018-10-05
- 0.1.0 — 2018-09-30

## README

# email-address-parser

[![Build Status](https://travis-ci.org/iriand/node-email-address-parser.svg?branch=master)](https://travis-ci.org/iriand/node-email-address-parser)
[![Coverage Status](https://coveralls.io/repos/github/iriand/node-email-address-parser/badge.svg?branch=master)](https://coveralls.io/github/iriand/node-email-address-parser?branch=master)
![David](https://david-dm.org/iriand/node-email-address-parser.svg)
![David](https://img.shields.io/david/dev/iriand/node-email-address-parser.svg)
[![Known Vulnerabilities](https://snyk.io/test/github/iriand/node-email-address-parser/badge.svg?targetFile=package.json)](https://snyk.io/test/github/iriand/node-email-address-parser?targetFile=package.json)


Installation
-------

Using npm:
```shell
$ npm i email-address-parser
```
 
Usage
-------
```js
const EmailParser = require('email-address-parser');
const emailParser = new EmailParser('user-name@domain-name.com');

const userName = emailParser.getUserName(); // user-name
const domainName = emailParser.getDomainName() // domain-name.com
```

License
-------

This module is MIT licensed.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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