email-normalize
v1.0.0
Published
Normalize email addresses to their canonical form
Readme
email-normalize
This is a rewrite of email-normalize without Meteor stuff.
Installation
npm install --save email-normalizeUsage
const normalize = require('email-normalize');
// Sync version
const normalized = normalize('[email protected]'); // Output: '[email protected]'
// Async version (powered by Bluebird)
normalize('[email protected]', { detectProvider: true }).then(normalized => {
console.log(normalized); // Output '[email protected]'
});