0.2.1 • Published 6 years ago

simple-scorm-wrapper v0.2.1

Weekly downloads
107
License
MIT
Repository
github
Last release
6 years ago

version 0.2.0

Documentation

Javascript API wrapper for Scorm 1.2 and/or Scorm 2004

Installation

npm install simple-scorm-wrapper

Usage examples

import scorm from 'simple-scorm-wrapper';

let api = new Scorm({
  exitValue: null, //optional use to enforce value sent when the program is terminated
  score: {
    min: 0,
    max: 100
  },
  debugger: function(err, msg, param, value) {
    console.log(err, param, value);
  }
}, function(api, message) {
  //success callback - triggered if the initialization of the LMS apiHandler was successful
  //your program/code logic here
});

Methods

api.exitValue = ""; // force cmi.exit value. Accepts one of these values : "", "normal", "logout", "suspend";

0.2.1

6 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago