Socket
Socket
Sign inDemoInstall

react-email-validator

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-email-validator

a very fast and robust email validator


Version published
Weekly downloads
1.4K
decreased by-0.85%
Maintainers
1
Install size
1.73 kB
Created
Weekly downloads
 

Readme

Source

react-email-validator

A simple module to validate an e-mail address

travis build version downloads

Installation

Install via NPM:

npm install react-email-validator

Usage

javascript

var validate = require("react-email-validator");

validate("test@email.com"); // true

validate("test.com"); // false

TypeScript

import { validate } from 'email-validator';

validate("test@email.com"); // true

validate("test.com"); // false

You can also get the result from the res variable.

Usage


var validate = require("react-email-validator");
var res = require("react-email-validator");

validate("test@email.com");
 if(res){
     // the email is valid
 }else {
     // the email is invalid
 }

TypeScript

import { validate, res } from 'email-validator';

validate("test@email.com"); // true
if(res){
     // the email is valid
 }else {
     // the email is invalid
 }

Keywords

FAQs

Last updated on 01 Jan 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc