email-valider
v1.0.2
Published
A simple package for validating email addresses.
Downloads
2
Maintainers
Readme
email-valider
A simple package for validating email addresses.
Installation
You can install the email-valider
package using npm:
npm install email-valider
Usage
import { emailValidator } from 'email-valider';
const email = '[email protected]';
if (emailValidator(email)) {
console.log(`${email} is a valid email address.`);
} else {
console.error(`${email} is not a valid email address.`);
}
// Returns:
// true if the email address is valid, false otherwise.