kevinrohn/Github Action javascript-obfuscator

Obfuscate javascript by using the javascript-obfuscator

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
input_pathSingle file or directoryyes
output_pathOutput path for single file or directoryyes
compactCompact code output on one line. Type: boolean Default: true no
control_flow_flatteningEnables control flow flattening. Type: boolean Default: false no
control_flow_flattening_thresholdThe probability that the control flow flattening transformation will be applied to the node. Type: boolean Default: false no
dead_code_injectionEnables dead code injection Type: boolean Default: false no
dead_code_injection_thresholdThe probability that the dead code injection transformation will be applied to the node. Type: boolean Default: false no
debug_protectionDisable browser Debug panel (can cause DevTools enabled browser freeze). Type: boolean Default: false no
debug_protection_intervalSets interval in milliseconds for debug protection so it is working even after page was loaded (can cause DevTools enabled browser freeze). Type: number Default: 0 no
disable_console_outputAllow console.log, console.info, console.error and console.warn messages output into browser console. Type: boolean Default: false no
domain_lockAllows to run the obfuscated source code only on specific domains and/or sub-domains (comma separated). Type: string[] (comma separated, without whitespaces) Default: [] no
domain_lock_redirect_urlAllows the browser to be redirected to a passed URL if the source code is not run on the domains specified by `domain_lock`. Type: string Default: about:blank no
excludeA filename or glob which indicates files to exclude from obfuscation. Type: string[] (comma separated, without whitespaces) Default: [] no
force_transform_stringsEnables force transformation of string literals, which being matched by passed RegExp patterns (comma separated). Type: string[] (comma separated, without whitespaces) Default: [] no
identifier_names_cache_pathThe existing .json file that will be used to read and write identifier names cache. Type: string Default: no
identifier_names_generatorSets identifier names generator. Values: dictionary, hexadecimal, mangled, mangled-shuffled. Type: string Default: hexadecimal no
identifiers_dictionaryIdentifiers dictionary (comma separated) for `identifier_names_generator dictionary` option. Type: string[] (comma separated, without whitespaces) Default: [] no
identifiers_prefixSets prefix for all global identifiers. Type: string Default: '' no
ignore_importsPrevents obfuscation of `require` and `dynamic` imports' Type: boolean Default: false no
logEnables logging of the information to the console. Type: boolean Default: false no
numbers_to_expressionsEnables numbers conversion to expressions. Type: boolean Default: false no
options_presetAllows to set options preset. Values: default, low-obfuscation, medium-obfuscation, high-obfuscation. Default: default Type: string Default: default no
rename_globalsAllows to enable obfuscation of global variable and function names with declaration. Type: boolean Default: false no
rename_propertiesUNSAFE: Enables renaming of property names. This probably MAY break your code. Type: boolean Default: false no
rename_properties_modeSpecify `rename_properties` option mode. Values: safe, unsafe. Default: safe Type: string Default: safe no
reserved_namesDisables obfuscation and generation of identifiers, which being matched by passed RegExp patterns (comma separated). Type: string[] (comma separated, without whitespaces) Default: [] no
reserved_stringsDisables transformation of string literals, which being matched by passed RegExp patterns (comma separated). Type: string[] (comma separated, without whitespaces) Default: [] no
seedSets seed for random generator. This is useful for creating repeatable results. Type: string|number Default: false no
self_defendingDisables self-defending for obfuscated code. Type: boolean Default: false no
simplifyEnables additional code obfuscation through simplification. Type: boolean Default: true no
source_mapEnables source map generation. Type: boolean Default: false no
source_map_base_urlSets base url to the source map import url when `source_map_mode: separate`. Type: string Default: '' no
source_map_file_nameSets file name for output source map when `source_map_mode: separate`. Type: string Default: '' no
source_map_modeSpecify source map output mode. Values: inline, separate. Default: separate Type: string Default: 'separate' no
source_map_sources_modeSpecify source map sources mode. Values: sources, sources-content. Default: sources-content Type: string Default: sources-content no
split_stringsSplits literal strings into chunks with length of `split_strings_chunk_length` option value. Type: boolean Default: false no
split_strings_chunk_lengthSets chunk length of `split_strings` option Type: number Default: 10 no
string_arrayEnables gathering of all literal strings into an array and replacing every literal string with an array call. Type: boolean Default: true no
string_array_calls_transformEnables the transformation of calls to the string array. Type: boolean Default: false no
string_array_calls_transform_thresholdThe probability that that calls to the string array will be transformed. Type: number Default: 0.5 no
string_array_encodingEncodes each string in strings array using base64 or rc4 (this option can slow down your code speed). Values: none, base64, rc4. Default: none Type: string[] (comma separated, without whitespaces) Default: [] no
string_array_indexes_typeAllows to control the type of string array call indexes. Type: string[] (comma separated, without whitespaces) Default: [] no
string_array_index_shiftEnables additional index shift for all string array calls. Type: boolean Default: true no
string_array_rotateEnable rotation of string array values during obfuscation. Type: boolean Default: true no
string_array_shuffleRandomly shuffles string array items. Type: boolean Default: true no
string_array_wrappers_countSets the count of wrappers for the string array inside each root or function scope. Type: number Default: 1 no
string_array_wrappers_chained_callsEnables the chained calls between string array wrappers. Type: boolean Default: true no
string_array_wrappers_parameters_max_countAllows to control the maximum number of string array wrappers parameters. Type: number Default: 2 no
string_array_wrappers_typeAllows to select a type of the wrappers that are appending by the `string_array_wrappers_count` option. Values: variable, function. Default: variable Type: string Default: 'variable' no
string_array_thresholdThe probability that the literal string will be inserted into `string_array` (Default: 0.8, Min: 0, Max: 1). Type: number Default: 0.8 no
targetAllows to set target environment for obfuscated code. Values: browser, browser-no-eval, node. Default: browser. Type: string Default: browser no
transform_object_keysEnables transformation of object keys. Type: boolean Default: false no
unicode_escape_sequenceAllows to enable/disable string conversion to unicode escape sequence. Type: boolean Default: false no

no outputs