JavaScript do maskowania adresu e -mail

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