Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-email-validator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-email-validator

a very fast and robust email validator

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
435
decreased by-17.92%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 01 Jan 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc