is-the-same-gmail
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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
*/

/is-the-same-gmail/

    Package Sidebar

    Install

    npm i is-the-same-gmail

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.03 kB

    Total Files

    6

    Last publish

    Collaborators

    • pierreneter