All Projects → ianstormtaylor → correct-email

ianstormtaylor / correct-email

Licence: other
Correct common misspellings in an email address, based on Kicksend's Mailcheck library.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

correct-email

Correct common misspellings in an email address, based on Kicksend's Mailcheck library.

Installation

$ component install ianstormtaylor/correct-email

Example

var correct = require('correct-email');
var correction = correct('[email protected]');
{
  local : 'test',
  domain : 'gmail.com',
  email : '[email protected]'
}

API

correct(string)

Returns a correction for the given email string, or false if nothing to correct.

correct.threshold(number)

Change the string distance threshold for matches.

correct.domains

The array of domain names to match against.

correct.tlds

The array of TLDs to match against.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].