Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagroop2001 authored Mar 8, 2023
1 parent f8a516b commit ac2681c
Showing 1 changed file with 70 additions and 2 deletions.
72 changes: 70 additions & 2 deletions Readme.md
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.
```

0 comments on commit ac2681c

Please sign in to comment.