typecodec
TypeScript icon, indicating that this package has built-in type declarations

0.15.0 • Public • Published

typecodec

Under 1kB, fast, type-safe runtime validation of unknown data for TypeScript.

Version Downloads License

Examples: Tests | Benchmarks

Features

  • Small: Zero dependencies and under 1kB minified and gzipped.
  • Fast: Decoders are optimized more for speed than for very detailed error messages.
  • Immutable: All functions and methods return new decoder instances.
  • Safe: All decoders return newly constructed values, never the original input.
  • Universal: Works both client-side (all modern browsers) and server-side (Node.js).

Package Sidebar

Install

npm i typecodec

Weekly Downloads

29

Version

0.15.0

License

MIT

Unpacked Size

31.5 kB

Total Files

7

Last publish

Collaborators

  • utkarshkukreti