ianstormtaylor-email
v0.0.1
Published
Parse an email address into its components, based on component/url
Downloads
2,474
Readme
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