A pure functional validator with composite function and validation utilities
- ⚡ Multi runtime support (
Deno
,Node.js
and Browsers) - 📚 Pure TypeScript and provides type definition
- 🌎 Universal module, providing
ES modules
andUMD
- 📦 Optimized, super slim size
- 📄 TSDoc-style comments
Deno: is-valid
(deno.land, nest.land)
Node.js: @miyauci/is-valid
(npm)
The TypeScript version must be 4.1.0
or higher.
This project provide ES modules
and UMD
. The range supported by both is different.
Limit support to the latest environment to reduce the bundle size.
Deno |
Node.js |
Edge |
Firefox |
Chrome |
Safari |
iOS Safari |
Samsung |
Opera |
---|---|---|---|---|---|---|---|---|
^1.6.0 | ^14.16.0 | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
Browser is supporting since IE11.
Node.js |
IE / Edge |
Firefox |
Chrome |
Safari |
iOS Safari |
Samsung |
Opera |
---|---|---|---|---|---|---|---|
^6.17.0 | IE11 / ^16 | ^60 | ^61 | ^10.1 | ^10.3 | ^8.2 | ^48 |
Compared to ES modules
, UMD
has a bundle size increase of about 2.5x. Recommend using ES modules
as much as possible.
Contributions, issues and feature requests are welcome!
Feel free to check issues.
Give a ⭐️ if this project helped you!
Copyright © 2021-present TomokiMiyauci.
Released under the MIT license