Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

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

Install

npm i ianstormtaylor-email

DownloadsWeekly Downloads

71

Version

0.0.1

License

MIT

Last publish

Collaborators