A TypeScript (and JavaScript) library for working with Alloy instances in the browser.
The complete API documentation can be found here.
To install using npm:
npm install alloy-ts
To use directly in the browser, download alloy-*.*.*.js
from the bundle/
directory and include in your HTML directly:
<script src='alloy-*.*.*.js'></script>
To use in an ES2015 environment:
import * as Alloy from 'alloy-ts';
// OR
import { AlloyInstance, ...} from 'alloy-ts';
If you're including the bundle in a web page, the library is exposed globally
as alloy
:
<script>
const instance = new alloy.AlloyInstance(...);
</script>