Function argument validation for humans
- Expressive chainable API
- Lots of built-in validations
- Supports custom validations
- Written in TypeScript
$ npm install ow
value matches the provided
Create a reusable validator.
Returns a predicate that verifies if the value matches at least one of the given predicates.
All the below types return a predicate. Every predicate has some extra operators that you can use to test the value even more fine-grained.
The following predicates are available on every type.
Inverts the following predicates.
Use a custom validation function. Return
... read the whole story at github.com.