As demonstrated in #13, the current API is confusing. fileOptions should be the default, as you rarely want to use globalOptions. Options could be applied globally using a boolean flag. Something like:
And if you want to use js-obfuscator both locally and globally, you still can. Just use the plugin twice: once with global set to true, once with false.
As demonstrated in #13, the current API is confusing.
fileOptions
should be the default, as you rarely want to useglobalOptions
. Options could be applied globally using a boolean flag. Something like:And if you want to use
js-obfuscator
both locally and globally, you still can. Just use the plugin twice: once withglobal
set totrue
, once withfalse
.