1.0.0 • Published 5 years ago

is-the-same-gmail v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

is the same gmail address

compare 2 emails is the same gmail or not

install

yarn add is-the-same-gmail
const isTheSameGmail = require("is-the-same-gmail");

console.log(
  isTheSameGmail("pierre.neter@gmail.com", "pierreneter@gmail.com"),
  isTheSameGmail("pierre.neter@gmail.com", "pierreneter@googlemail.com"),
  isTheSameGmail("pierre.neter+test@gmail.com", "pi.err.e.ne.t.er@googlemail.com"),
  isTheSameGmail(("pierre.nete1r@gmail.com", "pierreneter@googlemail.com"),
);

/*
*  true
*  true
*  true
*  false
*/