email-format-checker
v0.0.8
Published
The email-format-checker will check email addresses for these to have a valid format
Downloads
8
Readme
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 = require('email-format-checker')
// use the object to interact with the module
const options = {
email: '[email protected]',
emailRepeat: '[email protected]'
}
// fire the object with the function
const validEmailAddress = emailFormatChecker(options)
// console output for testing: boolean
console.log(validEmailAddress)
Options (input / output)
Input
| Parameter | Type | Description | | ----------- | ------ | ------------------------------------------------------- | | email | 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