Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

normalize-email

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-email - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

5

index.js

@@ -22,3 +22,6 @@ 'use strict'

username = username.split('+')[0]
username = username.replace(/\./g, '')
if(!/hotmail\.com$/.test(domain)) {
username = username.replace(/\./g, '')
}
}

@@ -25,0 +28,0 @@

2

package.json

@@ -5,3 +5,3 @@ {

"author": "John Otander",
"version": "0.0.1",
"version": "1.0.0",
"main": "index.js",

@@ -8,0 +8,0 @@ "directories": {

@@ -18,6 +18,3 @@ var assert = require('assert')

'johnotander@HOTMAIL.com',
'johnotander+foobar@hotmail.com',
'john.o.t.a.n.d.er+foobar@hotmail.com',
'JOHN.o.t.a.n.d.er+foobar@hotmail.com',
'john.otander@hotmail.com'
'Johnotander@hotmail.com'
]

@@ -49,2 +46,6 @@

it('should not remove dots from hotmail emails', function() {
assert.equal(normalizeEmail('john.otander@hotmail.com'), 'john.otander@hotmail.com')
})
it('should normalize live emails', function() {

@@ -51,0 +52,0 @@ liveEmailsToNormalize.forEach(function(email) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc