Scond
=========
A small library that performs multi validation execution
Installation
npm i -S scond
or
yarn add scond
Usage
Simple case
const Scond = ; const scond = ; const check1 = id: 'test_cond_1' { return valuesuseraccess_level > 10 }; const check2 = id: 'test_cond_2' { return typeof valuesuser === 'object' }; const check3 = id: 'test_cond_3' { return valuesuseraccess_level > 100 }; scond; const values = user: access_level: 42; scond; //true scond; scond; //false
Tests
npm test
or
yarn test
Contributing
If you want to join this case by help maintaining something, please don't hesitate to contact.
I'm happy to receive bug reports, fixes, documentation enhancements, and any other improvements.
And since I'm not a native English speaker, if you find any grammar mistakes in the documentation, please also let me know. :)