Skip to content

v0.6.3

Compare
Choose a tag to compare
@icebob icebob released this 07 Sep 20:20
· 670 commits to master since this release

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.