# deepvalid

> Deep input validation for node.js api

Latest version **1.1.9** (published 2024-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install deepvalid
pnpm add deepvalid
yarn add deepvalid
bun add deepvalid
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.9 |
| Published | 2024-04-19 |
| First published | 2021-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 344.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | webigorkiev |
| Maintainers | webigorkiev |
| Keywords | validation, form validation, node api validation, validator, input params check |

## Links

- npm: https://www.npmjs.com/package/deepvalid
- Repository: https://github.com/webigorkiev/deepvalid
- npm.io page: https://npm.io/package/deepvalid

## Alternatives

- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@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

## Recent versions

- 1.1.9 (latest) — 2024-04-19
- 1.1.8 — 2024-02-05
- 1.1.7 — 2022-12-01
- 1.1.6 — 2022-12-01
- 1.1.5 — 2022-12-01
- 1.1.4 — 2022-04-06
- 1.1.3 — 2021-12-20
- 1.1.2 — 2021-10-24
- 1.1.1 — 2021-10-22
- 1.1.0 — 2021-10-22
- 1.0.7 — 2021-06-02
- 1.0.6 — 2021-06-02
- 1.0.5 — 2021-06-02
- 1.0.4 — 2021-06-02
- 1.0.3 — 2021-06-02

## README

<h1 align="center"> deepvalid </h1>
<p align="center">
  <b>deepvalid is a simple node.js library for validation API input params</b>
</p>

## Description
deep-validation helps you build API input params validation

## Installation

```bash
npm i deepvalid
```
## Documentation

https://webigorkiev.github.io/deepvalid/

## Features

* Zero Dependencies
* Supports deep input object
* Very simple small library
* Focus on usability and performance
* Testing coverage


```bash
Run tests with Mocha

$ npm run test
```

## Usage

```javascript
import {validator, ValidationError, required} from "deepvalid";

try {
    const request = {test: "test value"};
    const valid = validator();
    valid.setModel({"test": {required}});
    valid.validate(request);
    
    return true;
} catch(err) {
    const e: ValidationError = err;
    console.log(e.getMessage())
}

```

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