Use the dictionary as the name of the identifiers

This commit is contained in:
adiantek
2018-11-03 17:45:50 +01:00
parent 1d1b65b693
commit 0d5aea2598
16 changed files with 164 additions and 18 deletions
+6 -1
View File
@@ -251,7 +251,7 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
.option(
'--identifier-names-generator <string>',
'Sets identifier names generator. ' +
'Values: hexadecimal, mangled. ' +
'Values: hexadecimal, mangled, dictionary. ' +
'Default: hexadecimal',
IdentifierNamesGeneratorSanitizer
)
@@ -259,6 +259,11 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
'--identifiers-prefix <string>',
'Sets prefix for all global identifiers.'
)
.option(
'--identifiers-dictionary <list> (comma separated, without whitespaces)',
'Identifiers dictionary (comma separated)',
ArraySanitizer
)
.option(
'--log <boolean>', 'Enables logging of the information to the console',
BooleanSanitizer