# scorm-wrapper-test

> A TypeScript-based SCORM Wrapper for integrating SCORM functionality into your web applications.

Latest version **1.0.3** (published 2024-02-01) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install scorm-wrapper-test
pnpm add scorm-wrapper-test
yarn add scorm-wrapper-test
bun add scorm-wrapper-test
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2024-02-01 |
| First published | 2024-02-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 95.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yachehbo |
| Maintainers | yachehbo |
| Keywords | scorm |

## Links

- npm: https://www.npmjs.com/package/scorm-wrapper-test
- npm.io page: https://npm.io/package/scorm-wrapper-test

## Recent versions

- 1.0.3 (latest) — 2024-02-01
- 1.0.2 — 2024-02-01
- 1.0.1 — 2024-02-01

## README

# SCORM Wrapper

A TypeScript-based SCORM Wrapper for integrating SCORM functionality into your web applications.

## Installation

```bash
npm install scorm-wrapper
```
## Usage
### 1. Import the SCORM Wrapper
``` javascript
import SCORMWrapper from 'scorm-wrapper';
```
### 2. Initialize SCORM Connection
``` javascript
// Initialize SCORM connection
SCORMWrapper.init();
```
### 3. Get SCORM Data
``` javascript
const completionStatus = SCORMWrapper.get('cmi.completion_status');
console.log('Completion Status:', completionStatus);
```
### 4. Set SCORM Data
``` javascript
// Set completion status to 'completed'
SCORMWrapper.set('cmi.completion_status', 'completed');
```
### 5. Save SCORM Data
``` javascript
// Save changes
SCORMWrapper.save();
```
### 6. Terminate SCORM Connection
``` javascript
// Terminate SCORM connection
SCORMWrapper.quit();
```
## API Reference
`init()`
Initialize the SCORM connection.

`get(parameter: string): any`
Get SCORM data for the specified parameter.

`set(parameter: string, value: any): boolean`
Set SCORM data for the specified parameter.

`save(): boolean`
Save changes made to SCORM data.

`quit(): boolean`
Terminate the SCORM connection.

## Contributing
Feel free to contribute to this project by opening issues or submitting pull requests.

---
_Source: https://npm.io/package/scorm-wrapper-test · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
