
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@the-node-forge/regex-simplifier
Advanced tools
A tiny utility that helps you understand, build, and test regular expressions using clean, readable code.
A tiny utility that helps you understand, build, and test regular expressions using clean, readable code.
explain(regex)
— Converts regex into plain Englishtest(value, pattern)
— Tests a string against a regex or named patternbuild(name)
— Generates regex for common use-cases like "email", "url", etc.npm install @the-node-forge/regex-simplifier
import { build, test, explain } from '@the-node-forge/regex-simplifier';
// Build common patterns
const emailRegex = build('email');
console.log(emailRegex.test('me@example.com')); // true
// Test a value directly
console.log(test('12345', 'zip')); // true
console.log(test('https://the-node-forge.dev', 'url')); // true
// Explain a raw regex
console.log(explain(/^\d{5}$/));
// => This pattern includes:
// - Starts with
// - exactly five digits
// - Ends with
Name | Description |
---|---|
Validates an email address | |
url | Validates an HTTP(s) URL (no FTP), with localhost or domain, optional port & path |
zip | Validates a US ZIP code (5 or 9 digits) |
phone | Validates a US phone number (with optional +1, balanced parentheses) |
ipv4 | Validates an IPv4 address |
ipv6 | Validates a full IPv6 address (no shorthand) |
iso-date | Validates a date in ISO format (YYYY-MM-DD) |
us-date | Validates a date in US format (MM/DD/YYYY) |
time24 | Validates time in 24‑hour format (HH:mm or HH:mm:ss) |
hex-color | Validates a hexadecimal color code (#RGB or #RRGGBB) |
rgb-color | Validates an RGB color value (0–255 each) |
credit-card | Validates a credit card number (Visa, MasterCard, Amex) |
ssn | Validates a US Social Security Number |
slug | Validates a URL slug (lowercase, numbers, hyphens) |
uuid | Validates a UUID (versions 1–5) |
We welcome contributions! Feel free to open an issue or submit a pull request.
If you find Regex Simplifier helpful, give it a ⭐ on GitHub.
Full documentation available at: https://the-node-forge.github.io/regex-simplifier
MIT © 2025 The Node Forge
FAQs
A tiny utility that helps you understand, build, and test regular expressions using clean, readable code.
The npm package @the-node-forge/regex-simplifier receives a total of 0 weekly downloads. As such, @the-node-forge/regex-simplifier popularity was classified as not popular.
We found that @the-node-forge/regex-simplifier demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.