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 6.5 (server)
- IE 10+ (browser)
Installation
yarn add optimal
// OR
npm install optimal --save
Documentation
Will write eventually...