Optimal
A system for building and validating defined object structures, like argument options, configuration
files, data bags, validation fields, and more! Runs checks in development, and strips checks in
production using dead code elimination.
- Recursively builds and validates nested structures.
- Supports common data types.
- Autofills missing fields with default values.
- Allows or restricts unknown fields.
- Mark fields as nullable or required.
- Handles complex operators like AND, OR, and XOR.
Requirements
- Node 8.9 (server)
- IE 11+ (browser)
Installation
yarn add optimal
// Or
npm install optimal
Documentation
Will write eventually...