An email validator / regex that also considers the email TLD
npm install all-good-emailsThis 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 👌
Install with npm:
``bash`
npm install all-good-emails
js
import validate from "all-good-emails"validate("jane@doe.io") // true
validate("jane@io") // false
validate("jane@doe.oi") // false
``