
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@zootools/email-spell-checker
Advanced tools
mailSpellChecker.js (mail spell checker) is a lightweight module that suggests a right domain when your users misspell it in an email address
🔐 Reduce failed authentication ⬆️ Increase emails delivery ⚡️ Built for speed
Email Spell Checker is the easiest way to reduce misspelled email addresses in your web apps and server. Used in production by companies to validate thousands of mispelled emails daily.
![npm package][bundlephobia-img]
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.
We rewrote and improve mailcheck.js, a great module that is not longer maintained (7+ years old).
js-levenshtein
, one of the fastest string distance JS modules.Install with npm:
npm i @zootools/email-spell-checker --save
Install with yarn:
yarn add @zootools/email-spell-checker
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 email
console.log('address', suggestedEmail.address); // jorge
console.log('domain', suggestedEmail.domain); // gmail.com
console.log('full', suggestedEmail.full); // jorge@gmail.com
}
The out-of-the box configuration is the best for every mainstream project. However, we know sometimes you want to pass extra configuration.
Bare in mind that the more domains, TLDs options you add, the slower the validation will take. That's why we recommend to avoid passing your custom configuration.
You can easily extend EmailSpellChecker as you need:
import emailSpellChecker from '@zootools/email-spell-checker';
const suggestedEmail = emailSpellChecker.run({
email: 'jorge@gmaik.co',
domains: DOMAINS,
topLevelDomains: [
...emailSpellChecker.POPULAR_DOMAINS,
'supercooldomain.com',
],
});
if (suggestedEmail) {
// Found bad spelled email...
// ...Tell your user to fix the email
console.log('address', suggestedEmail.address); // jorge
console.log('domain', suggestedEmail.domain); // gmail.com
console.log('full', suggestedEmail.full); // jorge@gmail.com
}
TODO: Put screenshot of it in action
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.
Type: string
Lorem ipsum.
Type: object
Type: string
Default: rainbows
Lorem ipsum.
FAQs
mailSpellChecker.js (mail spell checker) is a lightweight module that suggests a right domain when your users misspell it in an email address
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.
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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.