-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8a516b
commit ac2681c
Showing
1 changed file
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,71 @@ | ||
## Ensure accurate and secure input with our reliable string validation library. | ||
# validify-string | ||
|
||
### Installation and Usage | ||
Ensure accurate and secure input with our reliable string validation library. | ||
|
||
## Install | ||
|
||
``` | ||
npm i validify-string | ||
``` | ||
|
||
## Example | ||
|
||
```js | ||
import validator from "validify-string"; | ||
|
||
validator.isPasswordStrong("StrongPass12@#") | ||
validator.isAlpha("Jagroop") | ||
|
||
``` | ||
|
||
## Details | ||
|
||
``` | ||
validator.isEmpty(str) | ||
This function will check if string is empty or not. | ||
``` | ||
|
||
``` | ||
validator.isIdentical(strOne , strTwo) | ||
This function will check if string One is equal to string Two. | ||
``` | ||
|
||
``` | ||
validator.isAlpha(str) | ||
This function will check if string contain Alphabets only. | ||
``` | ||
|
||
``` | ||
validator.isAlphaNumeric(str) | ||
This function will check if string is AlphaNumeric string only. | ||
``` | ||
|
||
``` | ||
validator.isValidEmail(email) | ||
This function will check if given Input is valid email or not. | ||
``` | ||
|
||
``` | ||
validator.countWords(str) | ||
This function will return number of words in a string. | ||
``` | ||
|
||
``` | ||
validator.isAvailable(str, word) | ||
This function will check if given word is available in the string or not. | ||
``` | ||
|
||
``` | ||
validator.countOccurrences(str, word) | ||
This function will count the occurrence of word in the string. | ||
``` | ||
|
||
``` | ||
validator.isPasswordStrong(password) | ||
This function will check if given Input is valid password or not. | ||
``` | ||
|
||
``` | ||
validator.isURL(str) | ||
This function will check if given Input is valid URL or not. | ||
``` |