
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
@utilify/regex
Advanced tools
The Regex Utilities provide methods for validating common patterns such as email addresses, URLs, UUIDs, and more.
The Regex Utilities provide methods for validating common patterns such as email addresses, URLs, UUIDs, and more.
To install the regex utilities package, use the appropriate command:
npm install @utilify/regex
yarn add @utilify/regex
pnpm add @utilify/regex
Import the functions into your project:
import { isAlpha, isAlphanumeric, isEmail, isURL } from '@utilify/regex';
const { isAlpha, isAlphanumeric, isEmail, isURL } = require('@utilify/regex');
function isAlpha(value: string): boolean;
Checks if the string contains only letters (a-z and A-Z).
function isAlphanumeric(value: string): boolean;
Checks if the string contains only letters and numbers (a-z, A-Z, 0-9).
function isBase64(value: string): boolean;
Checks if the string is encoded in Base64 format.
function isCreditCard(value: string): boolean;
Checks if the string follows the pattern of a valid credit card number.
function isEmail(value: string): boolean;
Checks if the string is a valid email address.
function isIPV4(value: string): boolean;
Checks if the string is an IPv4 address.
function isIPV6(value: string): boolean;
Checks if the string is an IPv6 address.
function isSlug(value: string): boolean;
Checks if the string is in a URL-friendly slug format.
function isURL(value: string): boolean;
Checks if the string is a valid URL.
function isUUID(value: string): boolean;
Checks if the string follows the format of a valid UUID.
FAQs
The Regex Utilities provide methods for validating common patterns such as email addresses, URLs, UUIDs, and more.
The npm package @utilify/regex receives a total of 20 weekly downloads. As such, @utilify/regex popularity was classified as not popular.
We found that @utilify/regex demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.