Fix misspelled email addresses in JavaScript

📮 An ultratiny (1.9 KB) and fast JavaScript email checker to reduce users typing a wrong email. Written in TypeScript. Enterprise-grade.

Marta garcia
Alexander Guy Head of Marketing & Growth at Zerion
Farza Majeed Founder at buildspace.so (YC S20)
Maricris Bonzo head of community and entrepreneur buildspace

18,000+ weekly downloads

Get started in 2 minutes!

1

Install @zootools/email-spell-checker

npm
yarn
pnpm
javascript
npm i @zootools/email-spell-checker --save

2

Import and call

run
method to validate your email

import emailSpellChecker from '@zootools/email-spell-checker';

const suggestion = emailSpellChecker.run({
  email: '[email protected]'
})

3

If the user made a typo, suggestion contain the fixed email. 🎉

if (suggestion) {
  // dev: user made a typo -- handle the suggestion.
  // for example: show a message to fix the email.

  console.log(suggestion.address); // jorge
  console.log(suggestion.domain); // gmail.com
  console.log(suggestion.full); // [email protected]
}

First-class developer experience you deserve

🔥 18k+ weekly downloads

Top companies and brand use it every day in demanding production products.

⚡️ Lightning fast

Highly performant email checking using Sift3 - a fast and accurate string distance algorithm.

🔨 1-minute migration

Same API and functions as mailcheck so you can switch in a sec!

🔋 Updated

39+ popular domains, and 66+ modern TLDs out-of-the-box. Frequently updated.

🚀 Ridiculously small

1.9KB (minzip) and 0 external dependencies. We agree, big bundles suck!

💙 Written in TypeScript

Fully written in TypeScript, cause we know you love it and we too.

⚙️ Extensible

Allows you to pass your custom rules and domains. Tweak it as you need.

🔐 Unit tested

Cause we'd never use a library without tests :).

Got questions?

Watch this quick tutorial or contact us

Want to send emails like a pro?

Use ZooTools Emails API or start with the email marketing tool.

ZooTools (fmr WaitlistPanda) logo

ZooTools is the SAAS Growth platform with email and referral marketing for small and medium sized businesses to grow organically.

© 2021-2024 ZooTools