Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
email-misspelled
Advanced tools
check possible misspelled in email value and return a matching domain string thanks to this
npm i email-misspelled --save
or
yarn add email-misspelled
import emailMisspelled from "email-misspelled"
const emailChecker = emailMisspelled()
emailChecker("user@otmail.com") // hotmail.com
Type | Default | Description |
---|---|---|
number | 2 | max length difference between two string |
import emailMisspelled from "email-misspelled"
const emailChecker1 = emailMisspelled({ lengthDiffMax: 1 })
emailChecker1("user@otmail.com") // hotmail.com
emailChecker1("user@tmail.com") // undefined
const emailChecker1 = emailMisspelled({ lengthDiffMax: 2 })
emailChecker1("user@otmail.com") // hotmail.com
emailChecker1("user@tmail.com") // hotmail.com
Type | Default | Description |
---|---|---|
number | 2 | max possible misspelled |
import emailMisspelled from "email-misspelled"
const emailChecker1 = emailMisspelled({ maxMisspelled: 1 })
emailChecker1("user@hotmial.com") // hotmail.com
emailChecker1("user@hotmia.com") // undefined
const emailChecker1 = emailMisspelled({ maxMisspelled: 2 })
emailChecker1("user@hotmial.com") // hotmail.com
emailChecker1("user@hotmia.com") // hotmail.com
Type | Default | Description |
---|---|---|
string[] | Domain list | max possible misspelled |
import emailMisspelled from "email-misspelled"
const emailChecker1 = emailMisspelled({ domainList: ["random.org"] })
emailChecker1("user@hotmial.com") // undefined
emailChecker1("user@randmo.org") // random.org
outlook.com
gmail.com
hotmail.com
hotmail.fr
live.fr
live.com
laposte.fr
wanadoo.fr
FAQs
Check misspell email's domain and return a list of matching domain suggestions
The npm package email-misspelled receives a total of 7,547 weekly downloads. As such, email-misspelled popularity was classified as popular.
We found that email-misspelled demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.