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

@ssts/email

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ssts/email

Validate an email => true | false.

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Validate an email => true | false

One straight forward email validator function that returns a boolean 😍

Install

npm i @ssts/email

Import

import seniorEMAIL from "@ssts/email";

Use

const isEmail: boolean = seniorEMAIL("example@test.com");

Arguments

Returns a boolean

OrderParameterTypeDefault
1emailstringrequired

Examples

import seniorEMAIL from "@ssts/email";

console.log(seniorEMAIL("example@gmail.com"));          // true
console.log(seniorEMAIL("user123@yahoo.com"));          // true
console.log(seniorEMAIL("valid.email@domain.com"));     // true
console.log(seniorEMAIL("contact@mydomain.org"));       // true
console.log(seniorEMAIL("info@business.info"));         // true

console.log(seniorEMAIL(""));                           // false
console.log(seniorEMAIL("abc"));                        // false
console.log(seniorEMAIL("user@.com"));                  // false
console.log(seniorEMAIL("user@@domain.com"));           // false
console.log(seniorEMAIL("&user@email.com"));            // false
console.log(seniorEMAIL("can----t@gmail.com"));         // false
console.log(seniorEMAIL("user@gmail..com"));            // false





Made With Chocolate By Senior Sedo 😎

Be Chocolateful 💙😍

ssts stands for senior-sedo-typescript 💙

So instead of @senior-sedo-typescript/is-email

@ssts/email for simplicity sake 😍






Keywords

FAQs

Package last updated on 21 Nov 2024

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