Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zootools/email-spell-checker

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zootools/email-spell-checker

mailSpellChecker.js (mail spell checker) is a lightweight module that suggests a right domain when your users misspell it in an email address

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39K
increased by7.03%
Maintainers
1
Weekly downloads
 
Created
Source

🔐 Reduce failed authentication ⬆️ Increase emails delivery ⚡️ Built for speed

The best way to check a misspelled email address in JavaScript

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.

Typesense Demo

@zootools/email-spell-checker

npm package Downloads Issues Commitizen Friendly Semantic Release

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 email

  console.log('address', suggestedEmail.address); // jorge
  console.log('domain', suggestedEmail.domain); // gmail.com
  console.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.

API

myPackage(input, options?)

input

Type: string

Lorem ipsum.

options

Type: object

postfix

Type: string Default: rainbows

Lorem ipsum.

Keywords

FAQs

Package last updated on 21 Oct 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc