src/utils.js
/**
 * Generate random tempmail address prefix
 * @returns {string} addressPrefix
 */
Generate random tempmail address prefix
@returns {string} addressPrefix
Generate random tempmail address prefix @returns { string } addressPrefix
function randomEmailPrefix() {
  const name = chance.name({ middle_initial: true }).toLowerCase().split(' ').join('.');
  const year = chance.integer({ min: 1970, max: ((new Date()).getFullYear() - 8) });
  return `${name}-${year}`;
}
function randomEmailPrefix ( ) { const name = chance . name ( { middle_initial : true } ) . toLowerCase ( ) . split ( ' ' ) . join ( '.' ) ; const year = chance . integer ( { min : 1970 , max : ( ( new Date ( ) ) . getFullYear ( ) - 8 ) } ) ; return ` ${ name } ${ year } ` ; }
Generate random tempmail address prefix
 @returns {string} addressPrefix
Generate random tempmail address prefix @returns { string } addressPrefix