alloy-ts
v1.4.1
Published
Alloy instances in TypeScript
Readme
alloy-ts
A TypeScript (and JavaScript) library for working with Alloy instances in the browser.
API
The complete API documentation can be found here.
Installing
To install using npm:
npm install alloy-tsTo use directly in the browser, download alloy-*.*.*.js from the bundle/
directory and include in your HTML directly:
<script src='alloy-*.*.*.js'></script>Using
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>