mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Added stringArrayCallsTransform and stringArrayCallsTransformThreshold options (#987)
This commit is contained in:
@@ -363,9 +363,19 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
|
||||
)
|
||||
.option(
|
||||
'--string-array <boolean>',
|
||||
'Disables gathering of all literal strings into an array and replacing every literal string with an array call',
|
||||
'Enables gathering of all literal strings into an array and replacing every literal string with an array call',
|
||||
BooleanSanitizer
|
||||
)
|
||||
.option(
|
||||
'--string-array-calls-transform <boolean>',
|
||||
'Enables the transformation of calls to the string array',
|
||||
BooleanSanitizer
|
||||
)
|
||||
.option(
|
||||
'--string-array-calls-transform-threshold <number>',
|
||||
'The probability that that calls to the string array will be transformed',
|
||||
parseFloat
|
||||
)
|
||||
.option(
|
||||
'--string-array-encoding <list> (comma separated, without whitespaces)',
|
||||
'Encodes each string in strings array using base64 or rc4 (this option can slow down your code speed). ' +
|
||||
|
||||
Reference in New Issue
Block a user