eiki
v0.1.1
Published
The simplest library for judging values
Downloads
3
Maintainers
Readme
Eiki
Eiki is a library for judging values. It's extremely small and decomposable - if you only use a function and only part of that function, you'll only have a few dozen extra bytes added to your bundle!
Install
Install through a package manager:
# npm
$ npm i eiki
# yarn
$ npm i eiki
# pnpm
$ pnpm i eiki
(By the way, I strongly recommend pnpm, since I like not having my entire disk
eaten by node_modules
.)
Usage
For usage help, check out the documentation!
Comparison
zod
: I likezod
, but it has some weird bloat I don't need.class-validator
: It's nice but it's very big. I use it on the server-side.vahv
: Nobody's heard of this one, but you should go use it, since it's cute! It's more for forms though. Eiki is a lower-level validation library1.
Contribution
Thank you for contributing! Please note all of your contributions will be placed under MIT - make sure both you and whoever wrote all the code, whether you or not, are okay with that!
Open up a pull request, and ensure the tests pass. If you've got an issue that would benefit from tests showing the issue, it'd be great if you added some!
License
MIT.
1: I find it really funny to call anything in JS low-level.