version 0.2.0
Documentation
Javascript API wrapper for Scorm 1.2 and/or Scorm 2004
Installation
npm install simple-scorm-wrapper
Usage examples
; let api = exitValue: null //optional use to enforce value sent when the program is terminated score: min: 0 max: 100 { console; } { //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";