# all-validate

> Validate all the input text with ease

Latest version **1.0.18** (published 2019-04-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install all-validate
pnpm add all-validate
yarn add all-validate
bun add all-validate
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.18 |
| Published | 2019-04-29 |
| First published | 2019-04-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| Author | rohit22 |
| Maintainers | rohit22 |

## Links

- npm: https://www.npmjs.com/package/all-validate
- npm.io page: https://npm.io/package/all-validate

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.18.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [babel-loader](https://npm.io/package/babel-loader.md) ^8.0.5
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.24.1

## Recent versions

- 1.0.18 (latest) — 2019-04-29

## README

### Validations
### GitHub Repository https://github.com/Rohit221990/all-validation.git

## Email Validations
```
emailValidate(value, required)

value(Email value)
required(Required field: true, false)

Example:
emailValidate('abc@abc.abc', true) // If field is required
----return bool


emailValidate('abc@abc.abc', false) // If field is not required
----return bool



```


##Password Validation

# Call passwordValidate function with following parameters
```
 var response = passwordValidate(passwordValue, minlength, maxlength, required)
 Example
 passwordValidate('abc123_', 4, 8, true)
----- return bool


```

# # Call passwordValidate function with following parameters
```
 var response =  passwordValidate(passwordValue, patternType, required)
 Example:
 passwordValidate('abc123_', "^(?=.*[0-9]+.*)(?=.*[a-zA-Z]+.*)[0-9a-zA-Z]{6,}$", true)
---- return bool

 patterns details: http://regexlib.com/Search.aspx?k=Password&AspxAutoDetectCookieSupport=1

 Pattern Type:
//Validate with one character, one number and one special character(if there)
^(?=.*[0-9]+.*)(?=.*[a-zA-Z]+.*)[0-9a-zA-Z_@./#&+-]{6,8}$

// Validate with one Character, one Capital character, one special character and one number
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[#&^%$@!_*-]).{6,8}$

//Validate with character, number and no special character
(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{6,8})$

```
## Passport validation with given maxlength
```
var response = passportValidate(value, length, required)

Example:
passportValidate('ASWR45G', 7, true)
----- return bool

```


## Indian PAN Card validation
```
var response = panCardValidate(value, required)

Example:
panCardValidate('value', true)
-----return bool

([a-zA-Z]){5} -> Alphabets should be 5 in number.

([0-9]){4} -> Numbers should be 4 in number.

([a-zA-Z]){1} -> Alphabets should be 1 in number.

```

## pin code Validations
```

var response = pinCodeValidate(value, place, required)

Example:
pinCodeValidate('000000','IND', true)
 ------return bool
```


## validate area Phone number validation

```
Any area validation. Example: 'US','IND','IRAN','ITALI','SA','INDONESIA','UK','Other'


var response  = phoneNumberValidate(value, area, required)

Example:
phoneNumberValidate('phone number',area, true)
---return bool

```
## Many validation functions are available:
```
validateIP(value, type, required) // Example: validateIP('192.168.34.56', 'IPv4', true) OR validateIP('IPv6 value', 'IPv6', true)
validateDomain(value, required) // Example validateDomain('www.google.com', true) OR validateDomain('www.google.com', false)
validatePrice(value, required) // Example validatePrice('23:00', true) OR validatePrice('33:00', false)

---
_Source: https://npm.io/package/all-validate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
