Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.
/ email Public archive

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

Notifications You must be signed in to change notification settings

ianstormtaylor/email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

email

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

Installation

$ component install ianstormtaylor/email

Example

var email = require('email');
email.parse('[email protected]');
{
  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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published