encodeUnicodeArray
has been renamed to unicodeArrayEncoding
and now accepts following values: true|false|'base64'|'rc4'
.wrapUnicodeArrayCalls
was removed and now all calls to unicodeArray
are always wrapped by special wrapper function.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.