A modernized reimplementation of the SCORM API Wrapper inspired by pipwerks/scorm-api-wrapper. It works with the SCORM 1.2 and SCORM 2004 Runtime.
- Nodejs 10+
- npm 6+
npm install
npm run build
- Build artifact can be found in the
dist/
folder.
npm install
npm test
Contributions are welcomed.
- Replace karma/jasmine framework to babel/jest.
- Set all properties in wrapper to private.
- Rename functions to be more readable.
- Fix log messages to reflect the new code.
- Fix Karma reporter to show test results.
- Type check test builds with base tsconfig.
- Modify functions to have only one return type to allow strict null check.
- Copied every function from old code.
- Implemented the whole wrapper object as a single class with every property and function as public.
- Return types were taken from the old code.
- Class property names were changed a bit to reflect the nested structure of the old code.