node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org ยป

minschema

minschema

a (html form) schema builder & validator

install

npm i minschema

usage

var MinSchema = require("minschema");

var schema = new MinSchema({
	name: String,
	age: Number
});

var html = schema.toString(); //returns HTML form
console.log(schema.verify({name: "FOO", age: "100"})); //true

License: BSD