
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@ssts/email
Advanced tools
One straight forward email
validator function that returns a boolean 😍
npm i @ssts/email
import seniorEMAIL from "@ssts/email";
const isEmail: boolean = seniorEMAIL("example@test.com");
Returns a boolean
Order | Parameter | Type | Default |
---|---|---|---|
1 | string | required |
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 😍
FAQs
Validate an email => true | false.
We found that @ssts/email demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.