Package Exports
- specma
- specma/dist/specma.modern.js
- specma/dist/specma.umd.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (specma) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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