Module wrapper for the Pipwerks SCORM API Wrapper, providing a clean ES6 module interface for LMS communication in e-learning content. Current version 0.1.2. Exposes SCORM object with init, get, set, save, quit methods plus debug and utilities. Intended for browser use in SCORM 1.2/2004 compliant LMS environments. Key differentiator: simplifies the original pipwerks API with ES module exports and npm distribution, avoiding global pollution.
npm install pipwerks-scorm-api-wrapperVerified import paths — ran on the pinned version, not inferred.
Shows basic SCORM workflow: initialize, get student name, set lesson status, save, and quit.
Call SCORM.init() at the beginning of your script; ensure the page is loaded in an LMS window.
Use SCORM.isAvailable() to confirm connection, or check result !== ''.
Use import syntax in ESM context, or ensure bundler (webpack, rollup) resolves the module.
Always pass string 'true' or 'false'; for numbers, use Boolean(Number(value)).
Use import { SCORM } from 'pipwerks-scorm-api-wrapper'; then use SCORM directly instead of pipwerks.SCORM.Switch to ES module import syntax: import { SCORM } from 'pipwerks-scorm-api-wrapper';Use import { SCORM } from 'pipwerks-scorm-api-wrapper';No dependency data recorded yet.