0.1.1 • Published 1 month ago

@octra/assets v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@octra/assets

This library contains assets like JSON schema definitions.

Installation

ESM, CJS, TS definitions & UMD (optional)

npm install --save @octra/assets

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/assets/index.umd.js"></script>

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

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

See full example here

Use

Import

ESM, Typescript

Import the classes and functions from @octra/assets. For example

import {OctraGuidelinesJSONSchema} from "@octra/assets";

UMD Bundle

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

/*
make sure that you have injected the umd bundle as described before.
 */
const guidelinesJSONSchema = OctraAssets.OctraGuidelinesJSONSchema;

API

You can find more information about classes and functions of @octra/assets here.

0.1.1

1 month ago

0.1.0

3 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

8 months ago