email-format-checker
What is this?
The email-format-checker will check email addresses for these to have a valid format
Install
npm i email-format-checker
How to use it?
const emailFormatChecker = // use the object to interact with the moduleconst options = email: 'maxmustermann@beispiel.de' emailRepeat: 'maxmustermann@beispiel.de' // fire the object with the functionconst validEmailAddress = // console output for testing: booleanconsole
Options (input / output)
Input
Parameter | Type | Description |
---|---|---|
string | The email address wich will be checked | |
emailRepeat | string | The repeating email address to check for spell mistakes |
Output
Type | Description |
---|---|
boolean | Return a true or false |
What will be checked?
- Email address can not be empty
- It compares whether email and emailRepeat are alike
- Email adress will be checked if there is an at-sign and a dot
License
MIT