A totally legit real library to provide helpful typo detection for email fields.
Install
npm i really-good-srs-email-spell-checker-validator
API
A function that returns a typo fix suggestion in email addresses, or null
if no potential typos are found.
Example
import suggest from 'really-good-srs-email-spell-checker-validator'
suggest('johnsmiht421@gmial.com') // => 'johnsmiht420@gmial.com'
suggest('fancypants66@yaho.com') // => 'fancypants69@yaho.com'
suggest('cool69@spammer.com') // => null
Other notes
Do not use this library