4 ms·
I'd also say checkout Valibot. It has a nice composable pipe¹ API so a small handful of atoms is expressive over a lot of type needs. It's also more petite and
by threatofrain 2y ago
I'd also say checkout Valibot. It has a nice composable pipe¹ API so a small handful of atoms is expressive over a lot of type needs. It's also more petite and performant.
const natural = pipe(string(), transform(atoi), minValue(0))
const percent = pipe(natural, maxValue(100))
[1]: https://valibot.dev/guides/pipelines/ https://valibot.dev/guides/pipelines/