0.0.8 • Published 5 years ago

email-format-checker v0.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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: 'maxmustermann@beispiel.de',
  emailRepeat: 'maxmustermann@beispiel.de'
}

// fire the object with the function
const validEmailAddress = emailFormatChecker(options)

// console output for testing: boolean
console.log(validEmailAddress)

Options (input / output)

Input

ParameterTypeDescription
emailstringThe email address wich will be checked
emailRepeatstringThe repeating email address to check for spell mistakes

Output

TypeDescription
booleanReturn a true or false

What will be checked?

  1. Email address can not be empty
  2. It compares whether email and emailRepeat are alike
  3. Email adress will be checked if there is an at-sign and a dot

License

MIT

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago