Socket
Socket
Sign inDemoInstall

@rearguard/is-email

Package Overview
Dependencies
0
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @rearguard/is-email

A fast email checker.


Version published
Weekly downloads
25
decreased by-69.14%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.9.6 (2021-11-01)

Bug Fixes

  • add typings for add in batch (e2cc4de)
  • batch export (f356637)
  • batch exports (db5b1ec)
  • building and publishing (db0b59e)
  • exports from helpers (fd448d6)
  • types and exports for burner (d8529d5)

Readme

Source

@rearguard/is-email.

Installation.

npm i @rearguard/is-email

Intro.

@rearguard/is-email is a validator for email addresses, it allows checking when an email address is valid, according to RFC 5322

Usage.

const {isEmail} = require('@rearguard/is-email');

const longemail = new Array(255).fill('a').join();

isEmail(`${longemail}@gmail.com`); // => false
isEmail(`@gmail.com`); // => false
isEmail('hello@gmail.com'); // => false
isEmail('hello@sienna12bourne.ga'); // => true

Benchmarks.

@rearguard/is-email is fast and intuitive, you can find benchmarks against similar libraries in the /bench folder.

Tests.

yarn test

Keywords

FAQs

Last updated on 01 Nov 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