This package is a wrapper for oslllo-validator therefore shares the same documentaion with it.
See the full installation and usage documentation HERE.
Create an all in one Javascript validator that throws an exception
on false
.
It was requested HERE
const assert = require("oslllo-validator-exception");
assert.actualNaN(NaN); // => True
assert.actualNaN(null); // => Throws Error
assert.actualNaN(undefined); // => Throws Error
const assert = require("oslllo-validator-exception");
assert.actualNaN(null, assert.msg("Invalid UUID")); // => Throws Error with custom message "Invalid UUID"
If you want to return false
instead of an exception
then check out oslllo-validator
HERE