# dessert-jsonschema

> jsonschema but with WebAssembly

Latest version **1.0.2** (published 2020-04-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install dessert-jsonschema
pnpm add dessert-jsonschema
yarn add dessert-jsonschema
bun add dessert-jsonschema
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-04-07 |
| First published | 2019-06-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dessert |
| Maintainers | nhyarlathotep |
| Keywords | wasm, jsonschema |

## Links

- npm: https://www.npmjs.com/package/dessert-jsonschema
- Repository: https://github.com/dessert-wasm/dessert-jsonschema
- Homepage: https://github.com/dessert-wasm/dessert-jsonschema#readme
- Issues: https://github.com/dessert-wasm/dessert-jsonschema/issues
- npm.io page: https://npm.io/package/dessert-jsonschema

## Dependencies (1)

- [dessert-jsonschema-core](https://npm.io/package/dessert-jsonschema-core.md) ^0.1.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.2 (latest) — 2020-04-07
- 1.0.1 — 2019-10-09
- 1.0.0 — 2019-06-04

## README

[![](https://user-images.githubusercontent.com/25987204/78205790-10b0c680-74d8-11ea-9767-5bb93e920044.png)](https://dessert.dev/)

# Dessert jsonschema
============

[![npm-badge]][npm-url]
[![license-badge]][license]

[npm-badge]: https://img.shields.io/npm/v/dessert-jsonschema.svg
[npm-url]: https://www.npmjs.org/package/dessert-jsonschema
[license-badge]: https://img.shields.io/github/license/dessert-wasm/dessert-jsonschema
[license]: LICENSE_MIT

> [jsonschema](https://github.com/tdegrunt/jsonschema), but implemented in Rust and WebAssembly

## Table of contents
* [Usage](#usage)
* [Installation](#installation)
* [License](#license)
* [Contributing](#contributing)

## Usage

```js
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

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

## Installation
With [npm](https://npmjs.org/):
```shell
npm install dessert-jsonschema
```

## License
This software is licensed under the MIT license (see [LICENSE](LICENSE_MIT)).

## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md)

---
_Source: https://npm.io/package/dessert-jsonschema · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
