npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pipwerks-scorm-api-list

v1.2.1

Published

Module list for the Pipwerks SCORM API with list

Downloads

32

Readme

Pipwerks SCORM API list

It's a module list for the wonderful Pipwerks api list.

npm install --save pipwerks-scorm-api-list

Add a New future

1.added score

cmi.core.score.raw - This is for 1.2 SCORM function

2. cumulativeScore

here we get cmi.core.score.raw before set. Then add with the current before set

3. maxscore

cmi.core.score.max - This is for 1.2 SCORM function
cmi.score.max -This is for 2004 SCORM function

Example

import { SCORM } from "pipwerks-scorm-api-list";

SCORM.init();
var name = SCORM.get("cmi.core.student_name");
SCORM.set("cmi.core.lesson_status", "completed");
SCORM.save();
SCORM.quit();

Shortcuts

pipwerks.SCORM.init = pipwerks.SCORM.connection.initialize;
pipwerks.SCORM.get  = pipwerks.SCORM.data.get;
pipwerks.SCORM.set  = pipwerks.SCORM.data.set;
pipwerks.SCORM.save = pipwerks.SCORM.data.save;
pipwerks.SCORM.quit = pipwerks.SCORM.connection.terminate;

Methods

pipwerks.SCORM.isAvailable(): boolean

A simple function to allow Flash ExternalInterface to confirm presence of JS list before attempting any LMS communication.

pipwerks.SCORM.API.find(window): object

Looks for an object named API in parent and opener windows

pipwerks.SCORM.API.get():object

Looks for an object named API, first in the current window's frame hierarchy and then, if necessary, in the current window's opener window hierarchy (if there is an opener window).

pipwerks.SCORM.API.getHandle(): object

Returns the handle to API object if it was previously set Returns the pipwerks.SCORM.API.handle variable.

pipwerks.SCORM.connection.initialize(): boolean

Tells the LMS to initiate the communication list.

pipwerks.SCORM.connection.terminate(): boolean

Tells the LMS to terminate the communication list

pipwerks.SCORM.data.get(parameter:string): string

Requests information from the LMS.

pipwerks.SCORM.data.set(parameter:string, value:string): boolean

Tells the LMS to assign the value to the named data model element. Also stores the SCO's completion status in a variable named pipwerks.SCORM.data.completionStatus. This variable is checked whenever pipwerks.SCORM.connection.terminate() is invoked.

pipwerks.SCORM.data.save():boolean

Instructs the LMS to persist all data to this point in the list

pipwerks.SCORM.debug.getCode():number

Requests the error code for the current error state from the LMS

pipwerks.SCORM.debug.getInfo(errorCode:number):string

"Used by a SCO to request the textual description for the error code specified by the value of [errorCode]."

pipwerks.SCORM.debug.getDiagnosticInfo(errorCode:number):string

"Exists for LMS specific use. It allows the LMS to define additional diagnostic information through the API Instance."

pipwerks.UTILS.StringToBoolean(str:string):boolean

Converts 'boolean strings' into actual valid booleans. (Most values returned from the API are the strings "true" and "false".)

pipwerks.UTILS.trace(msg:string):void

Displays error messages when in debug mode.