An open API service indexing awesome lists of open source software.

https://github.com/femto-apps/lib-verify

A simple verification library for validating the sanity of variable contents.
https://github.com/femto-apps/lib-verify

input-validation node-js nodejs

Last synced: 11 months ago
JSON representation

A simple verification library for validating the sanity of variable contents.

Awesome Lists containing this project

README

          

## lib-verify

> A simple verification library for validating the sanity of variable contents.

### Usage

```JavaScript
const { verify } = require('../index')

let result = verify('Name', 'Alexander', [
verify.string.maxLength(6),
verify.string.minLength(3)
])

console.log(result) // [ "Name field is too long: 'Alexander', maximum length is 6 but found length 9" ]
```