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