🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

human-regex

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

human-regex - npm Package Compare versions

Comparing version
2.0.4
to
2.0.5
+1
-1
package.json
{
"name": "human-regex",
"version": "2.0.4",
"version": "2.0.5",
"description": "Human-friendly regex builder with English-like syntax",

@@ -5,0 +5,0 @@ "main": "dist/human-regex.cjs.js",

@@ -127,8 +127,8 @@ [![npm version](https://img.shields.io/npm/v/human-regex.svg)](https://www.npmjs.com/package/human-regex)

| Method | Description | Example Output |
| ------------- | -------------------------------------- | -------------- | ------- | ----- | --- | ----- |
| `.protocol()` | Adds a protocol pattern (`https?://`). | `https?://` |
| `.www()` | Adds a www pattern (`(www\.)?`). | `(www\.)?` |
| `.tld()` | Adds a top-level domain pattern (`(com | org | net)`). | `(com | org | net)` |
| `.path()` | Adds a path pattern (`(/\w+)*`). | `(/\w+)*` |
| Method | Description | Example Output |
| ------------- | -------------------------------------- | --------------------- |
| `.protocol()` | Adds a protocol pattern (`https?://`). | `https?://` |
| `.www()` | Adds a www pattern (`(www\.)?`). | `(www\.)?` |
| `.tld()` | Adds a top-level domain pattern. | `["(com\|org\|net)"]` |
| `.path()` | Adds a path pattern (`(/\w+)*`). | `(/\w+)*` |

@@ -135,0 +135,0 @@ ### Flags