v0.6.3
Browser support
From now the library is working in browsers as well. Thanks for incubus8!
Example in vanilla JS:
<script src="https://unpkg.com/fastest-validator"></script>
var v = new FastestValidator();
const schema = {
multi: [
{ type: "string", min: 3, max: 255 },
{ type: "boolean" }
]
};
console.log(v.validate({ multi: "John" }, schema));
// Returns: true
No dependencies
We removed all dependencies.