ianstormtaylor-email

0.0.1 • Public • Published

email

Parse an email address into its components, based on component/url.

Installation

$ component install ianstormtaylor/email

Example

var email = require('email');
email.parse('johnny+nospam@example.com');
{
  local: 'johnny+nospam',
  name: 'johnny',
  filter: 'nospam',
  domain: 'example.com'
}

API

email.parse(string)

Parse the given email string.

email.hasFilter(string)

Check if the given email string has a + filter.

License

MIT

Dependents (2)

Package Sidebar

Install

npm i ianstormtaylor-email

Weekly Downloads

505

Version

0.0.1

License

MIT

Last publish

Collaborators