Skip to content

alloy-js/alloy-ts

Repository files navigation

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

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>

About

Alloy instances in TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published