Creates SCORM package from source directory.
- Supported are:
- SCORM 1.2
- SCORM 2004 3rd Edition
- SCORM 2004 4th Edition
- Automatic .zip file creation is not implemented yet.
version
{String} Version of schema. Available options:- '1.2'
- '2004 3rd Edition'
- '2004 4th Edition'
organization
{String} Company nametitle
{String}identifier
{String} Uses 0 and course title if left emptymasteryScore
{Number} Uses 80 if left emptystartingPage
{String} Uses index.html if left emptysource
{String} The path to files from which the package will be createddestination
{String} The path to where the package will be created
var scopackage = require('node-scorm-packager');
scopackage({
version: '2004 4th Edition',
organization: 'Test Company',
title: 'Test Course',
identifier: '00',
masteryScore: 80,
startingPage: 'index.html',
source: 'path to your files',
destination: 'path to where the package should be saved'
}, function(msg){
console.log(msg);
});
or as build task e.g. gulp:
var gulp = require('gulp'),
scopackage = require('node-scorm-packager');
gulp.task('scorm2004', function(done) {
scopackage({
version: '2004 4th Edition',
organization: 'Test Company',
title: 'Test Course',
identifier: '00',
masteryScore: 80,
startingPage: 'index.html',
source: 'path to your files',
destination: 'path to where the package should be saved'
}, function() {
done();
})
});