unicodeArray
option has been renamed to stringArray
.unicodeArrayThreshold
option has been renamed to stringArrayThreshold
.encodeUnicodeArray
option has been renamed to stringArrayEncoding
and now accepts following values: true|false|'base64'|'rc4'
.wrapUnicodeArrayCalls
was removed and now all calls to stringArray
are always wrapped by special wrapper function.unicodeEscapeSequence
allows to enable/disable strings conversion to unicode escape sequence.domainLock
locks the obfuscated source code so it only runs on specific domains and/or sub-domains.sourceMapBaseUrl
sets base url to the source map import url when sourceMapMode: 'separate'
.selfDefendingNode
or consoleOutputNode
now inserted into deepest stack trace function call.Utils.decToHex
methodobfuscate(sourceCode, options)
returns ObfuscationResult
object instead string
. ObfuscationResult
object contains two public methods: getObfuscatedCode()
and getSourceMap()
.javascript-obfuscator
command. See README.md
for available options.sourceMap
enables source map generation for obfuscated code.sourceMapMode
specifies source map generation mode.