This plugin can be used on: .js files and even on .coffee and .ts files after using the right plugin
The options avaialbe are all those available in the javascript-obfuscator package.
As in every malta plugin, options must be passed as shown in the sample usage below.
Sample usage:
@ malta app/source/index.js public/js -plugins=malta-js-obfuscator[compact:false,target:'browser']
or in the .json file :
"app/source/index.js" : "public/js -plugins=malta-js-obfuscator[compact:false,target:'browser']"
or in a script :
var Malta = ;Maltastart {var s = this;consoleconsole;'plugin' in o && console;console;};
For more information about the options checkout the javascript-obfuscator package on npm and the related herokuapp.com page