Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
/**
 * Generate a unique email address with the `+` label trick based on the user supplied email
 * @param {String} hash
 * @param {String} baseEmail
 */
function getUniqueEmail(hash, baseEmail) {
  const emailParts = baseEmail.split('@');
  return `${emailParts[0]}+${hash}@${emailParts[1]}`;
}

module.exports = { getUniqueEmail };