JavaScript para mascarar endereço de e -mail

var maskid = myemailId.replace(/^(.)(.*)(.@.*)$/,
     (_, a, b, c) => a + b.replace(/./g, '*') + c
);
Emmanuel Mahuni