all-good-emails
v0.0.5
Published
An email validator / regex that also considers the email TLD
Downloads
117
Maintainers
Readme
Pretty good email validator 👌 (with TLDs)
This should hopefully solve your problems if you also want to validate an email and check if the TLD is valid, not just the general email pattern.
Keep your emails all good 👌
Installation
Install with npm:
npm install all-good-emails
Usage
import validate from "all-good-emails"
validate("[email protected]") // true
validate("jane@io") // false
validate("[email protected]") // false