# vanila-js-validation

> Vanilla javaScript validation library

Latest version **1.0.8** (published 2020-02-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install vanila-js-validation
pnpm add vanila-js-validation
yarn add vanila-js-validation
bun add vanila-js-validation
```

## 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.8 |
| Published | 2020-02-02 |
| First published | 2020-01-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Raneen Medhat |
| Maintainers | raneen-medhat |
| Keywords | javaScript, validation, vanilla, javaScript |

## Links

- npm: https://www.npmjs.com/package/vanila-js-validation
- Repository: https://github.com/Raneen-medhat/validation-js
- Homepage: https://github.com/Raneen-medhat/validation-js#readme
- Issues: https://github.com/Raneen-medhat/validation-js/issues
- npm.io page: https://npm.io/package/vanila-js-validation

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2020-02-02
- 1.0.7 — 2020-01-25
- 1.0.6 — 2020-01-25
- 1.0.5 — 2020-01-24
- 1.0.3 — 2020-01-24
- 1.0.2 — 2020-01-23
- 1.0.1 — 2020-01-23
- 1.0.0 — 2020-01-23

## README

# Welcome to Vanilla JavaScript validation package

**vanilla-js-validation** is validation library using pure JavaScript including the following methods that can help you to validate your form inputs in easy way:

- isCharacter

- isValidEmail

- isEqual

- exceedMaxLength

- matchMinLength

- isNumber

- isRequired

- toEnglishNumber

- isSaudiMobile


## Installation


- Step 1: `npm i vanila-js-validation --save`

- Step 2: `import Validation from 'vanila-js-validation';`


## Methods

|   method             |Paramters            |Return                         |
|----------------|-------------------------------|-----------------------------|
|isCharcter|`value`            |true if the value is character, otherwise return false            |
|isValidEmail| `value` | true if email is valid, otherwise return false. *Email can accept domain and sub domain*
|isEqual          |`value1 , value2`|true if value one equals value two otherwise return false|
|exceedMaxLength       |`value , expected length`            |true if length exceed the length , otherwise return false          |
|matchMinLength          |`value , expected length`| true if length doesn't match min-length , otherwise return false|
|isNumber          |`value`        |true if the value is number, otherwise return false          |
|isRequired          |`value`|true if value length equals 0 otherwise return false
toEnglishNumber|`value`|converted Arabic numbers from Engilsh numbers

## To do

- Write More validation methods!

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