🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

simple-scorm-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-scorm-wrapper

Simple SCORM Wrapper for JavaScript

0.2.1
latest
Source
npm
Version published
Weekly downloads
5
25%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

lms

FAQs

Package last updated on 30 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts