1.0.2 • Published 4 years ago

dessert-jsonschema v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

npm.io

Dessert jsonschema

============

npm-badge license-badge

jsonschema, but implemented in Rust and WebAssembly

Table of contents

Usage

var Validator = require('dessert-jsonschema').Validator;
var v = new Validator();
var instance = 4;
var schema = {"type": "number"};
console.log(v.validate(instance, schema));

Even simpler

var validate = require('dessert-jsonschema').validate;
console.log(validate(4, {"type": "number"}));

Installation

With npm:

npm install dessert-jsonschema

License

This software is licensed under the MIT license (see LICENSE).

Contributing

See CONTRIBUTING.md