Skip to content

RusticiSoftware/TinCanJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2c6897e · Feb 13, 2014
Feb 13, 2014
Mar 27, 2013
Feb 13, 2014
Feb 13, 2014
Dec 13, 2012
Mar 27, 2013
Nov 11, 2013
Jun 4, 2013
Aug 16, 2012
Aug 17, 2012
Dec 12, 2013
Jan 10, 2014
Nov 11, 2013
Feb 13, 2014
Feb 13, 2014

Repository files navigation

A JavaScript library for talking Tin Can to the world.

Build Status

http://tincanapi.com/

Browser Usage

TinCanJS is available via Bower.

The browser environment is well tested and supports two kinds of Cross Origin requests which is sufficient to cover most versions of Chrome, FireFox, Safari as well as IE 8+. IE 6+ are supported for non-CORS (because they don't support it).

Include one of build/tincan-min.js or build/tincan.js as follows:

<script src="build/tincan-min.js"></script>

Node.js Usage

TinCanJS is available via npm.

The Environment/Node.js wrapper used in this version has a dependency on the 'xhr2' module which is also available via npm. It is used to allow the interfaces to the underlying LRS requests to have the same API. As such currently there is no support for synchronous requests when using this environment.

Install via:

npm install tincanjs

And within code:

var TinCan = require('tincanjs');

Environments

Implementing a new Environment should be straightforward and requires overloading a couple of methods on the TinCan.LRS prototype. There are currently two examples, Environment/Browser and Environment/Node.