Back
Question
Asked

What are some good email address validation npm libraries?



Just use the html validation attributes :)

Are you looking to verify if it's a real email (likely fake?) or to validate that it could be a real email? +1 for HTML5 validation as a simple solution.

This one works fine, if you are thinking about email input: www.npmjs.com/package/validat…

I think there are quadrillion valid email patterns, so using a library is 🙌 . One other very solid way to validate an email is sending an actual email to that address. Let the user click a link and then flag the mail as verified. I usually stick to the HTML attribute or check for an @ (if anything).