A piece of code to slim down HTML5 module exported by Adobe Captivate.
Checkout CPExternalizer CLI for command line interface or CPExternalizer GUI for graphical interface. See CPCluster example to get the whole scenarios for using these tools.
const cpext = require('cpexternalizer');CPExternalizer exposes 4 methods each of which returns a promise to chain.
{Array.<String>}srcFile paths to CPM.js exported by Adobe Captivate.{String}outdirWhere to save output. Default is the current directory.
Extracting the initiator(s) from src and export them to outdir.
{Array.<String>}srcFile paths to CPM.js exported by Adobe Captivate.{String}outdirWhere to save output. Default is the current directory.{String}samplePathpath to sample CPM.js file
Extracting components in CPM.js which are not covered in sample CPM.js at the moment.
{Array.<String>}srcinput folders{String}outdirwhere to save
Process folders (exported by Adobe Captivate) and return a "slimmed down" one containing only CPProjInit.js, ar and dr.
{Array.<String>}srcfile path or directory to find CPProjInit{String}ulpathfile path or directory of common unit loader
Fix the audio path in CPProjInit. All non-js files will be ignored.