8000 GitHub - davidsavoie1/specma: Simple and composable validation
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

davidsavoie1/specma

Repository files navigation

Specma

Simple, reusable and composable validation

Specma is a Javascript library to validate any type of value against a simple, reusable and composable spec.

  • Collection specs defined with the exact same shape as the value!
  • Based on predicate functions of type true || "reason"
  • Composable specs with intuitive and/or operators
  • Easy cross-validation between multiple fields
  • User defined customized invalid reasons
  • Async validation out of the box
  • Very small footprint

View complete documentation

About

Simple and composable validation

Resources

Stars

Watchers

Forks

Packages

No packages published
0