Email Spell Checker is a lightweight JavaScript module written in TypeScript that suggests a right domain when your users misspell it in an email address.
At ZooTools, we validate thousands of emails daily with mailSpellChecker and it helped up to reduce by 30% bounced emails.
The features your deserve
We rewrote and improve mailcheck.js, a great module that is not longer maintained (7+ years old).
🔋 Updated: 38+ supported popular domains out-of-the-box and continuously updated.
💙 TypeScript: Fully written in TypeScript, cause we know you love it and we too.
⚡️ Lighting fast: Highly performance email checking using js-levenshtein, one of the fastest string distance JS modules.
⚙️ Extensible: Allows to pass your custom rules and domains. Tweak it as you need.
🔨 5 minutes migration: Same API and functions as mailcheck to migrate in <5 minutes.
Getting started
Install
Install with npm:
npm i @zootools/email-spell-checker --save
Install with yarn:
yarn add @zootools/email-spell-checker
Usage
import emailSpellChecker from'@zootools/email-spell-checker';
const suggestedEmail = emailSpellChecker.run({
email: 'jorge@gmaik.co',
});
if (suggestedEmail) {
// Found bad spelled email...// ...Tell your user to fix the emailconsole.log('address', suggestedEmail.address); // jorgeconsole.log('domain', suggestedEmail.domain); // gmail.comconsole.log('full', suggestedEmail.full); // jorge@gmail.com
}
Some good use cases
User authentication (login, signup, email recovery).
Backend email validation.
Newsletter subscriptions.
How does it work?
TODO: Put screenshot of it in action
Other ports
Want to help contribute launching this email spell checker in other languages? Reach out to us and we'll provide the resources and help to make it happen and help distribute your package.
mailSpellChecker.js (mail spell checker) is a lightweight module that suggests a right domain when your users misspell it in an email address
The npm package @zootools/email-spell-checker receives a total of 27,820 weekly downloads. As such, @zootools/email-spell-checker popularity was classified as popular.
We found that @zootools/email-spell-checker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.
Package last updated on 21 Oct 2022
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
By Kirill Boychenko, Peter van der Zee - Jan 29, 2025