SCORM package generator
npm install node-scorm-packagerversion {String} Version of schema. Available options:
organization {String} Company name
title {String}
identifier {String} Uses 0 and course title if left empty
masteryScore {Number} Uses 80 if left empty
startingPage {String} Uses index.html if left empty
source {String} The path to files from which the package will be created
destination {String} The path to where the package will be created
javascript
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:
`javascript
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();
})
});
``