Added stringArrayCallsTransform and stringArrayCallsTransformThreshold options (#987)

This commit is contained in:
Timofey Kachalov
2022-02-05 20:57:39 +03:00
committed by GitHub
parent 7307b02712
commit f075a0e2d1
78 changed files with 1758 additions and 332 deletions
+11 -1
View File
@@ -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). ' +