0.1.2 • Published 3 months ago

@octra/json-sets v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@octra/json-sets

This library allows to define sets using JSON. JSONSetValidator parsed an array of objects and validates it using the JSON definition.

Installation

ESM, CJS, TS definitions & UMD (optional)

npm install --save @octra/json-sets

UMD Bundle (for Vanilla JS)

You have two options to install this package und use it as UMD:

a) Install via NPM and reference local files (no internet connection needed om production).

<script type="application/javascript" src="node_modules/@octra/json-sets/index.umd.js"></script>

b) Reference remote file (internet connection needed on production).

<script type="application/javascript" src="https://unpkg.com/@octra/json-sets/index.umd.js"></script>

See full example here

Use

Import

ESM, Typescript

Import the classes and functions from @octra/json-sets. For example

import {JsonSetValidator} from "@octra/json-sets";

UMD Bundle

All functions and classes are available via global scope OctraJSONSets. For example:

/*
make sure that you have injected the umd bundle as described before.
 */
const validator = new OctraJSONSets.JSONSetValidator();

API

You can find more information about classes and functions of @octra/json-sets here.

Changelog

Go to changelog

0.1.2

3 months ago

0.1.0

3 months ago

0.1.1

3 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago