0.0.9 • Published 8 years ago

node-scorm-packager v0.0.9

Weekly downloads
104
License
MIT
Repository
github
Last release
8 years ago

Documentation

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.

Initialization Options

  • version {String} Version of schema. Available options:
    • '1.2'
    • '2004 3rd Edition'
    • '2004 4th Edition'
  • 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

USAGE

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();
  })
});
0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago