splitString and splitStringChunkLength options

This commit is contained in:
sanex3339
2019-12-28 20:35:59 +03:00
parent b097cf82e8
commit 783067b505
24 changed files with 399 additions and 10 deletions
+10
View File
@@ -311,6 +311,16 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
'Default: separate',
SourceMapModeSanitizer
)
.option(
'--split-strings <boolean>',
'Splits literal strings into chunks with length of `splitStringsChunkLength` option value',
BooleanSanitizer
)
.option(
'--split-strings-chunk-length <number>',
'Sets chunk length of `splitStrings` option',
parseFloat
)
.option(
'--string-array <boolean>',
'Disables gathering of all literal strings into an array and replacing every literal string with an array call',