Typecheck

An awesome, tiny and extensible runtime types validation library.

Features

  • 🤖 Type safety with static type inference.
  • 🏝️ Tree-shakable and modular structure from design, import only what you need.
  • 🎧 Clean, readable and declarative API (and codebase).
  • 🛠️ Useful utilities included to parse and modify.
  • 👨‍💻 Most common types are included as schemas with their modifiers.
  • 📕 Code documentation included (with examples of use and variants 👨‍💻).
  • 🙉 Based on real use cases and designed to improve developer experience.

Example

import * as k from "https://deno.land/x/typecheck";

const EmailSchema = k.pipe(k.string(), k.isEmail(), k.minLength(5));

License

Completely free 🥳 and licensed under the MIT license.