New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

email-normalize

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-normalize

Normalize email addresses to their canonical form

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
46
2.22%
Maintainers
1
Weekly downloads
 
Created
Source

email-normalize

This is a rewrite of email-normalize without Meteor stuff.

Installation

npm install --save email-normalize

Usage

const normalize = require('email-normalize');

// Sync version
const normalized = normalize('a.b.c@gmail.com'); // Output: 'abc@gmail.com'

// Async version (powered by Bluebird)
normalize('a.b.c@googlemail.com', { detectProvider: true }).then(normalized => {
  console.log(normalized); // Output 'abc@gmail.com'
});

License

MIT

FAQs

Package last updated on 21 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts