1.0.4 • Published 3 years ago

@femto-apps/verify v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

lib-verify

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

Usage

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" ]
1.0.4

3 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago