version 0.2.3
Creates SCORM package from source directory.
- Supported Scorm versions:
- SCORM 1.2
- SCORM 2004 3rd Edition
- SCORM 2004 4th Edition
npm install simple-scorm-packager
version
{String} Version of schema. Available options:- '1.2'
- '2004 3rd Edition' alias '2004.3' alias '2004v3'
- '2004 4th Edition' alias '2004.4' alias '2004v4'
organization
{String} Company namelanguage
{String} Language of the package ( ISO )title
{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 createdpackage
{Object} Available options:zip
{Boolean} Archives package (NAME_VERSION_DATE.zip
), false by defaultoutputFolder
{String} The folder path where you want the zip filesize
{Bytes} Provide the package size, automatically calculated when not set,name
{String} Package name, defaults to scorm titleauthor
{String} Author name, used as default for vcard if not providedversion
{String} Package version (major.minor.patch), defaults to1.0.0
date
{String} Package date, defaults to now date(YYYY-MM-DD)vcard
{Object} :author
{String} Author name, when not provided defaults to package.authororg
{String} Organization name, defaults toorganization
tel
{String} Telephone number(s)address
{String} Addressmail
{String} E-mail contacturl
{String} website url
description
{String} Provide the course description or the Project Informationkeywords
{Array} Keywordsduration
{String} The time the media takes to play through, format PT#M#StypicalDuration
{String} The time it will take for a typical learner to fully experience the program, format PT#M#Srequirements
{Array of Objects of the following structure} :type
{String} The type of requirement, eg.: Browser, Osname
{String} The name of the type of requirement, eg.: Microsoft Internet Explorerversion
{String} The minimum version of the requirement
rights
{String} Copyright informations
var scopackager = require('simple-scorm-packager');
scopackager({
version: '2004 4th Edition',
organization: 'Test Company',
title: 'Test Course',
language: 'fr-FR',
identifier: '00',
masteryScore: 80,
startingPage: 'index.html',
source: './myProjectFolder',
package: {
version: "0.0.1",
zip: true,
outputFolder: './scormPackages'
}
}, function(msg){
console.log(msg);
});
if installed globally you can use it directly in command line
$ simple-scorm-packager
or
$ scopackager