nice-is-email
v1.0.3
Published
Checks whether provided parameter looks like a valid e-mail address
Downloads
18
Maintainers
Readme
nice-is-email
var valid = isEmail(val)
Checks whether provided parameter looks like a valid e-mail address
- val (string) - the string to check
- returns (boolean) valid -
true
ifval
is a valid e-mail address,false
otherwise
const isEmail = require('nice-is-email')
isEmail('[email protected]') // true
isEmail('@bar') // false