Skip to content

gartenkralle/mailcheck-plus-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Mailcheck++

A modern revival of the original Mailcheck β€” now maintained and improved!

Mailcheck++ suggests corrections when users misspell email domains β€” like gmial.com instead of gmail.com. It helps reduce signup errors, improve data quality, and enhance user experience.

This is a continuation of the original Mailcheck project by @derrickko, built under the MIT License. While that version is no longer actively maintained, this fork-free reboot brings it up to date with modern JavaScript standards and community-driven improvements.

✨ Features

  • 🧠 Smart domain, top-level domain, and second-level domain corrections
  • πŸ› οΈ Written in modern, modular JavaScript (ESM)
  • ⚑ Fast, lightweight, and dependency-free
  • βœ… Tested with real-world typos and domains
  • 🌍 Supports custom domain lists and localizations

πŸ”§ Usage

import { MailcheckPlusPlus } from "https://cdn.jsdelivr.net/gh/gartenkralle/[email protected]/js/modules/mailcheck-plus-plus.js";

const emailInput = document.getElementById('email');
const suggestion = document.getElementById('suggestion');

emailInput.addEventListener('blur', () => {
    const result = MailcheckPlusPlus.checkEmail(emailInput.value);

    suggestion.textContent = result ? 
        `Did you mean: ${result.full}?` : 
        'No suggestions available.';
});

πŸ” What's New

  • Fully ES Module-compatible
  • Improved typo detection
  • Rewritten for better performance and maintainability

πŸ™Œ Acknowledgements

This project is based on the original Mailcheck by derrickko. Licensed under the MIT License.

πŸ“ƒ License

MIT Β© Clemens Schneider

About

Fast, dependency-free JavaScript library to auto-correct common email domain typos.

Resources

License

Stars

Watchers

Forks

Packages

No packages published