SoFunction
Updated on 2025-04-14

ESC can implement JavaScript code compression attached to the usage method page 4/5



Examples of usage 
X:\cscript  -ow     Crunch '','' and '' at level 2 (default) and save the output as ''. Any previous file named '' will be overwritten. 
X:\cscript  -l 1 -oa  C:\script-directory Grab all scriptfiles (.js) in directory 'C:\script-directory', crunch them at level 1 (comment and empty line removal only) and append the result to ''. If '' doesn't exist, it will be created. 
X:\cscript  -l 0 -$ -ow STDOUT   Subject '' and '' for variable substitution, but perform no comment or whitespace removal. Redirect output to STDOUT instead of writing to file. 
X:\cscript  -l 4 -ow   Crunch '' using variable substitution and remove any occurance of whitespace (where permitted...) and save it as '' (equals -l 3 -$) 
X:\cscript  -l 4 -ow   >  Crunch '' at level 4 and save the verbose output to   

Previous page12345Next pageRead the full text