# simple-form-validation-library

> ## Usage

Latest version **1.0.1** (published 2022-04-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-form-validation-library
pnpm add simple-form-validation-library
yarn add simple-form-validation-library
bun add simple-form-validation-library
```

## 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.1 |
| Published | 2022-04-28 |
| First published | 2022-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bekzod |
| Maintainers | mirzaahmedov |
| Keywords | validation, validator |

## Links

- npm: https://www.npmjs.com/package/simple-form-validation-library
- Repository: https://github.com/mirzaahmedov/simple-form-validation-libtrary
- Homepage: https://github.com/mirzaahmedov/simple-form-validation-libtrary#readme
- Issues: https://github.com/mirzaahmedov/simple-form-validation-libtrary/issues
- npm.io page: https://npm.io/package/simple-form-validation-library

## Alternatives

- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads
- [@oridune/validator](https://npm.io/package/@oridune/validator.md) — 16 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-04-28
- 1.0.0 — 2022-04-27

## README

# Simple Validation library

## Usage

```js
import { Schema } from "./validation"

const schema = new Schema({
    first_name: (field) => field.string().required(),
    last_name: (field) => field.string().required(),
    email: (field) => field.string().required().email(),
    password: (field) => field.string().required().password(),
})

const { valid, errors } = schema.validateForm({
    first_name: "john",
    last_name: "doe",
    email: "john@doe.com",
    password: "password"
})
```

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