Skip to content

perfectstrong/CPExternalizer-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPExternalizer

This is the CLI version of CPExternalizer.

Check out CPCluster example to get the whole scenarios for using this tool.

Synopsis

node cli.js <command> <options>

Example

Extracting a module initiator from CPM.js

node cli.js extract --src path/to/CPM.js --outdir where/to/save

Extracting extra components from CPM.js

node cli.js xcpext --src path/to/CPM.js --outdir where/to/save

Slimming down a folder exported

node cli.js dirext --src path/to/folder --outdir where/to/save

Fixing the missing sound of exported initiator

node cli.js soundfix --src path/to/an/initiator.js --ulpath common/unit/loader

Command List

Command Description
extract Extracting CPProjInit (initiator of module). This is the default command, executed when no specific command given.
xcpext Extracting extra components (questions, effects,etc.) which is not coverd in the common CPM.js.
dirext Slimming exported folders of Adobe Captivate.
soundfix Fixing audio source in CPProjInit. Use it when the common loader does not find out the audio files.
help Manual of this tool.

extract & xcpext options

Option Type Description
-s, --src String | Array.<String> File paths to exported CPM.js by Adobe Captivate.
-d, --outdir String Where to save output. Default is ./ (the current directory of cli.js)

dirext options

Option Type Description
-s, --src String | Array.<String> Path to directory of exported modules.
-d, --outdir String Where to save output. Default is ./ (the current directory of cli.js)

soundfix options

Option Type Description
-u, --ulpath String Unit loader source path. Usually, the path from unit loader to module should be "down-straight", which means no climb up other directory.
-s, --src String | Array.<String> Initiator files and/or directories to find initiators. Only accept js file. All other types are ignored.

Releases

No releases published

Packages

No packages published