easy-vac
[ GitHub | Home | Playground | Documentation | Examples ]
easy-vac is a JavaScript library which helps you validate and clean data.
- Better than JSON Schema: get rid of JSON limits, define schemas in JavaScript style
- Auto Type Inferrence: works perfectly with TypeScript
- Type Tolerance: may convert values to correct type
- Highly Extensible: define your own types and reuse them everywhere
Install
easy-vac can be installed via:
- via NPM:
npm install --save easy-vac
- via CDN:
- easy-vac only runs on modern browsers with ES6 support.
- UMD version is provided by default, with global name
EasyVAC
- JSDelivr: https://cdn.jsdelivr.net/npm/easy-vac
- UnPKG: https://unpkg.com/easy-vac
more...)
Example ( console.logorder
Output:
"guest": "12345" "items": "product": "Ice Cream" "count": 1 "product": "Toast" "count": 3