----------------------------------------------------------------------------- ESC (ECMAScript Cruncher) * Version : 1.14 * Date : 2006-02-28 22:22:15 [+0100] * License : GNU GPL 2 (http://www.gnu.org/copyleft/gpl.txt) * Copyright (C) 2001-2006 Thomas Loo <tloo@saltstorm.net> --------------------------------------------------------------------------- ESC is an ECMAScript(*) pre-processor enabling an unlimited number of external scripts to be compressed/crunched into tight, bandwidth-optimized packages. ESC supports compressing of external sources only. Trying to process scripts inlined in HTML, ASP, PHP or equivalent pages are NOT recommended with this version of ESC. This feature might be added in a future version. Type "cscript ESC.wsf -help" for usage instructions. ESC is built using components from the Soya Scripting API 1.0.0-b10, a uni-host/cross-browser ECMAScript compliant class-library distributed freely under the terms of the BSD License. The Soya Scripting API, 'lib-soya' and the Soya SDK can be found at http://www.saltstorm.net/ --------------------------------------------------------------------------- * ECMAScript is the international standard for javascript. ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ----------------------------------------------------------------------------- ------------------------------------------------------------------------------ Usage: cscript ESC.wsf -l [0-4] -ow output.js foo.js bar.js C:\scripts\baz... ----------------------------------------------------------------------------- -a [-about] : Description page -c [-copyright] : Copyright/license notice -e [-example] : Examples of usage -h [-help] : This help-screen ----------------------------------------------------------------------------- -l [-level] [01(2)34] : [optional] Set crunch-level (4 sets -$ on) -s [-silent] : [optional] Run silent, nada stdout -v [-verbose] : [optional] Run in verbose mode -$ : [optional] Activate variable-substitution engine ----------------------------------------------------------------------------- -oa <filename> : Target filename for appending -ow <filename> : Target filename for writing -ow STDOUT : Write stream to STDOUT ----------------------------------------------------------------------------- <input-file(s)> : [required] file(s) and/or directories containing scripts to crunch... (paths containing spaces must be quoted) ----------------------------------------------------------------------------- Examples of usage. Crunch 'original1.js','original2.js' and 'original3.js' at level 2 (default) and save the output as 'crunched.js'. Any previous file named 'crunched.js' will be overwritten. X:\cscript ESC.wsf -ow crunched.js original1.js original2.js original3.js --------------------------------------------------------------------------- Grab all scriptfiles (.js) in directory 'C:\script-directory' and crunch them at level 1 (comment and empty line removal only) and append the result to 'crunched.js'. If 'crunched.js' doesn't exist, it will be created. X:\cscript ESC.wsf -l 1 -oa crunched.js C:\script-directory --------------------------------------------------------------------------- Subject 'original1.js' and 'original2.js' for variable substitution, but perform no comment or whitespace removal. Redirect output to STDOUT instead of writing to file. X:\cscript ESC.wsf -l 0 -$ -ow STDOUT original1.js original2.js --------------------------------------------------------------------------- Crunch 'original.js' using variable substitution and remove any occurance of whitespace (where permitted...) and save it as 'crunched.js' (equals -l 3 -$) X:\cscript ESC.wsf -l 4 -ow crunched.js original.js --------------------------------------------------------------------------- Try 'ESC.wsf -help' for information about available run-time directives. ----------------------------------------------------------------------------- ESC must be run from a DOS command prompt under cscript.exe. Do you want to switch host and have ESC bring up a helpscreen ? ESC needs JScript 5.5 or higher to score... You need to update your version of JScript to run ESC. Read the 'Requirements' section in the manual for information how to obtain and install the latest version of Microsofts 'Windows Script' package. Anchor ActiveXObject Call Closure Components Dictionary Document DOMParser Embed EvalError Event Form Global HttpCookie Image JavaArray JavaClass JavaMethod JavaObject JavaPackage Layer MimeType MimeTypeArray Option Url Packages Plugin PluginArray Popup RangeError ReferenceError TypeError StyleClass StyleSelector SyntaxError TypeError WScript URIError XMLHttpRequest XMLSerializer XPathEvaluator XSLTDocument XSLTProcessor Attr CDATASection CharacterData Comment CSS2Properties DOMException DOMImplementation DocumentType Element EntityReference EvalError NamedNodeMap Node NodeList Notation ProcessingInstruction Text HTMLElement HTMLDocument HTMLCollection HTMLHtmlElement HTMLHeadElement HTMLLinkElement HTMLTitleElement HTMLMetaElement HTMLBaseElement HTMLIsIndexElement HTMLStyleElement HTMLBodyElement HTMLFormElement HTMLSelectElement HTMLOptGroupElement HTMLOptionElement HTMLInputElement HTMLTextAreaElement HTMLButtonElement HTMLLabelElement HTMLFieldSetElement HTMLLegendElement HTMLUListElement HTMLOListElement HTMLDListElement HTMLDirectoryElement HTMLMenuElement HTMLLIElement HTMLBlockquoteElement HTMLDivElement HTMLParagraphElement HTMLHeadingElement HTMLQuoteElement HTMLPreElement HTMLBRElement HTMLBaseFontElement HTMLFontElement HTMLHRElement HTMLModElement HTMLAnchorElement HTMLImageElement HTMLObjectElement HTMLParamElement HTMLAppletElement HTMLMapElement HTMLAreaElement HTMLScriptElement HTMLTableElement HTMLTableCaptionElement HTMLTableColElement HTMLTableSectionElement HTMLTableRowElement HTMLTableCellElement HTMLFrameSetElement HTMLFrameElement HTMLIFrameElement _newEnum alert atob attachEvent back btoa captureEvents clearTimeout clearInterval close CollectGarbage confirm createEventObject createPopup decodeURI decodeURIComponent detachEvent dump encodeURI encodeURIComponent escape eval execScript find forward frameElement getAttention GetAttention getClass getComputedStyle getResource GetObject home isFinite isNaN moveBy moveTo open openDialog parseInt parseFloat print prompt releaseEvents resizeBy resizeTo ScriptEngine ScriptEngineMajorVersion ScriptEngineMinorVersion ScriptEngineBuildVersion scroll scrollBy scrollByLines scrollByPages scrollIntoView scrollTo setCursor setInterval setTimeout showHelp showModalDialog showModelessDialog sizeToContent stop taint toString updateCommands unescape untaint valueOf _content appCore arguments arity callee caller clientInformation clipboardData closed constructor controllers crypto debug defaultStatus directories document element event external history forward frames Infinity innerHeight innerWidth java length loading location locationbar name menubar navigator netscape offscreenBuffering opener opera outerHeight outerWidth pageXOffset pageYOffset parent personalbar pkcs11 prompter prototype returnValue screen screenLeft screenTop screenX screenY scrollX scrollY scrollbars self sidebar status statusbar style sun title toolbar top window onafterprint onbeforeprint onbeforeunload onblur onchange onclick onclose onerror onfocus onhelp onload onresize onreset onscroll onselect onunload onmousedown onmouseup onmouseover onmouseout onkeydown onkeyup onkeypress onmousemove onsubmit onreset onchange onselect onclose onabort onerror onpaint ondragdrop Soya BOOTSTRAP abstract break continue const class catch case debugger default double delete do enum extends else function finally float false for get instanceof implements import int in if long null new protected private package public return switch static super set typeof throw true this try undefined void var while with getter setter __defineGetter__ __defineSetter__ end elif cc_on _win32 _win16 _mac _alpha _x86 _mc680x0 _PowerPC _jscript _jscript_build _jscript_version Array Boolean Date Enumerator Error Function Math Number Object RegExp String VBArray