validator-fns
The fast and small validation library for JavaScript.
npm install validator-fns
TypeScript
Written in TypeScript, definition files included.
Optimized
Pure, memoized, tree-shakeable functions.
Minimal
Zero dependencies and total size below 3KB gzip+minified.
Fast
Good performance, faster than Yup, slower than Ajv, smaller than both.
No localization
No built-in error messages, bring your own.
Compatibility
Support for modern browsers and Node.js 14 and above.