Skip to content

Commit

Permalink
docs: validators
Browse files Browse the repository at this point in the history
  • Loading branch information
ram-amoncar committed May 23, 2024
1 parent e4301f6 commit 65cf9b6
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ A lightweight and versatile String Utility Package for Node.js & Browser.
* [isPascalCase](#isPascalCase)
* [regionMatch](#regionmatch)
* [looseRegionMatch](#looseregionmatch)
* [isAlpha](#isalpha)
* [isAlphaNumeric](#isalphanumeric)

(Coming Soon)
* [isAlphaNumeric](#)
* [isAlpha](#)
* [reverse](#)
* [CustomValidator](#)
* [Build](#build)
* [License](#license)

Expand Down Expand Up @@ -264,6 +265,20 @@ const str2 = { str: 'HelLo there', start: 0, end: 5 };
looseRegionMatch(str1, str2); // true
```

### isAlpha
Checks if a string contains only alphabetic characters (A-Z, a-z).
```js
isAlpha("HelloWorld"); // true
isAlpha("Hello123"); // false
```

### isAlphaNumeric
Checks if a string contains only alphanumeric characters (A-Z, a-z, 0-9).
```js
isAlphaNumeric("Hello01"); // true
isAlphaNumeric("1234567890"); // false
```

## Build
```
npm run build
Expand Down

0 comments on commit 65cf9b6

Please sign in to comment.