is-email

v1.0.0arrow_drop_down
v1.0.0
v0.0.1
STATUS
Passing
DOWNLOADS
30
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 years ago
SIZE
565 B
simple email validator
2 contributors
Install is-email as a package?
Copied
npm i @bit/bit.utils.validation.is-email
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right
isEmail (
email:string
) : boolean

simple email validator

Example
isEmail('not an email') => false
isEmail('[email protected]') => true
isEmail('@invalid.com') => false
Argument
email: string

the email to validate upon

Returns
boolean

Test Summary

is-email the component should exist

Pass

is-email return false upon unvalid email

Pass

is-email return true upon valid email

Pass
Help and resources