1.0.7 ā¢ Published 2 years ago
@diagoriente/email-domain-levenshtein v1.0.7
email-domain-levenshtein
š Suggest email address based on the Levenshtein distance between the given address and a list of popular domains.
Table of Contents
Installation
To install, you can use npm:
$ npm install --save @diagoriente/email-domain-levenshtein
$ yarn add @diagoriente/email-domain-levenshtein
Examples
Here is a simple example of @diagoriente/email-domain-levenshtein
:
import suggest from "@diagoriente/email-domain-levenshtein";
suggest("hello@yahop.com");
// return "hello@yahoo.com"
Demo
There is a demo hosted on CodeSandbox.