@ssts/email
v1.0.0
Published
Validate an email => true | false.
Downloads
334
Maintainers
Readme
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("[email protected]");
Arguments
Returns a boolean
| Order | Parameter | Type | Default | | :---: | :-------: | :----: | :------: | | 1 | email | string | required |
Examples
import seniorEMAIL from "@ssts/email";
console.log(seniorEMAIL("[email protected]")); // true
console.log(seniorEMAIL("[email protected]")); // true
console.log(seniorEMAIL("[email protected]")); // true
console.log(seniorEMAIL("[email protected]")); // true
console.log(seniorEMAIL("[email protected]")); // true
console.log(seniorEMAIL("")); // false
console.log(seniorEMAIL("abc")); // false
console.log(seniorEMAIL("[email protected]")); // false
console.log(seniorEMAIL("user@@domain.com")); // false
console.log(seniorEMAIL("&[email protected]")); // false
console.log(seniorEMAIL("[email protected]")); // false
console.log(seniorEMAIL("[email protected]")); // 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 😍