package
Type-safe data decoding and encoding for the minimalist.
npm install tiny-decodersGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
38.4 kB
Includes dependencies.
Type-safe data decoding and encoding for the minimalist.
It’s similar to zod/mini, but simpler. tiny-decoders is a single file, around a thousand lines of TypeScript, with rather trivial functions and a few kinda nuts TypeScript types. Unlike Zod, there are no date parsing or email validation functions or anything like that. Just decoders and encoders for all basic TypeScript types.