Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
no-regex-utils
Advanced tools
Some regex functions so you don't have to worry about it
npm install no-regex-utils
import NoRegex from "no-regex-utils";
isEmail
NoRegex.isEmail("fernando@email.com"); // true
isIPv4
NoRegex.isIPv4("192.168.0.1"); // true
isIPv6
NoRegex.isIPv6("2001:0db8:85a3:0000:0000:8a2e:0370:7334"); // true
isUsername
NoRegex.isUsername(
"user_test"
{
minLength: int, // optional, default: 3
maxLength: int, // optional, default: 16
underline: boolean, // optional, default: true
dash: boolean, // optional, default: true
}) // true;
isUrl
NoRegex.isUrl("https://google.com"); // true
onlyNumbers
NoRegex.onlyNumbers("test123test"); // 123
onlyLetters
NoRegex.onlyLetters(
"lE123tterS123"
{
lowercase: boolean, // optional, default: true
uppercase: boolean, // optional, default: true
}) // 'lEtterS';
Fernando Vargas Filho
This project is licensed under MIT License
FAQs
No Regex Utils - Common regex functions
The npm package no-regex-utils receives a total of 1 weekly downloads. As such, no-regex-utils popularity was classified as not popular.
We found that no-regex-utils 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.