kevinrohn/Github Action javascript-obfuscator
Obfuscate javascript by using the javascript-obfuscator
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| input_path | Single file or directory | yes | — |
| output_path | Output path for single file or directory | yes | — |
| compact | Compact code output on one line. Type: boolean Default: true | no | — |
| control_flow_flattening | Enables control flow flattening. Type: boolean Default: false | no | — |
| control_flow_flattening_threshold | The probability that the control flow flattening transformation will be applied to the node. Type: boolean Default: false | no | — |
| dead_code_injection | Enables dead code injection Type: boolean Default: false | no | — |
| dead_code_injection_threshold | The probability that the dead code injection transformation will be applied to the node. Type: boolean Default: false | no | — |
| debug_protection | Disable browser Debug panel (can cause DevTools enabled browser freeze). Type: boolean Default: false | no | — |
| debug_protection_interval | Sets 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_output | Allow console.log, console.info, console.error and console.warn messages output into browser console. Type: boolean Default: false | no | — |
| domain_lock | Allows 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_url | Allows 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 | — |
| exclude | A filename or glob which indicates files to exclude from obfuscation. Type: string[] (comma separated, without whitespaces) Default: [] | no | — |
| force_transform_strings | Enables 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_path | The existing .json file that will be used to read and write identifier names cache. Type: string Default: | no | — |
| identifier_names_generator | Sets identifier names generator. Values: dictionary, hexadecimal, mangled, mangled-shuffled. Type: string Default: hexadecimal | no | — |
| identifiers_dictionary | Identifiers dictionary (comma separated) for `identifier_names_generator dictionary` option. Type: string[] (comma separated, without whitespaces) Default: [] | no | — |
| identifiers_prefix | Sets prefix for all global identifiers. Type: string Default: '' | no | — |
| ignore_imports | Prevents obfuscation of `require` and `dynamic` imports' Type: boolean Default: false | no | — |
| log | Enables logging of the information to the console. Type: boolean Default: false | no | — |
| numbers_to_expressions | Enables numbers conversion to expressions. Type: boolean Default: false | no | — |
| options_preset | Allows to set options preset. Values: default, low-obfuscation, medium-obfuscation, high-obfuscation. Default: default Type: string Default: default | no | — |
| rename_globals | Allows to enable obfuscation of global variable and function names with declaration. Type: boolean Default: false | no | — |
| rename_properties | UNSAFE: Enables renaming of property names. This probably MAY break your code. Type: boolean Default: false | no | — |
| rename_properties_mode | Specify `rename_properties` option mode. Values: safe, unsafe. Default: safe Type: string Default: safe | no | — |
| reserved_names | Disables obfuscation and generation of identifiers, which being matched by passed RegExp patterns (comma separated). Type: string[] (comma separated, without whitespaces) Default: [] | no | — |
| reserved_strings | Disables transformation of string literals, which being matched by passed RegExp patterns (comma separated). Type: string[] (comma separated, without whitespaces) Default: [] | no | — |
| seed | Sets seed for random generator. This is useful for creating repeatable results. Type: string|number Default: false | no | — |
| self_defending | Disables self-defending for obfuscated code. Type: boolean Default: false | no | — |
| simplify | Enables additional code obfuscation through simplification. Type: boolean Default: true | no | — |
| source_map | Enables source map generation. Type: boolean Default: false | no | — |
| source_map_base_url | Sets base url to the source map import url when `source_map_mode: separate`. Type: string Default: '' | no | — |
| source_map_file_name | Sets file name for output source map when `source_map_mode: separate`. Type: string Default: '' | no | — |
| source_map_mode | Specify source map output mode. Values: inline, separate. Default: separate Type: string Default: 'separate' | no | — |
| source_map_sources_mode | Specify source map sources mode. Values: sources, sources-content. Default: sources-content Type: string Default: sources-content | no | — |
| split_strings | Splits literal strings into chunks with length of `split_strings_chunk_length` option value. Type: boolean Default: false | no | — |
| split_strings_chunk_length | Sets chunk length of `split_strings` option Type: number Default: 10 | no | — |
| string_array | Enables 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_transform | Enables the transformation of calls to the string array. Type: boolean Default: false | no | — |
| string_array_calls_transform_threshold | The probability that that calls to the string array will be transformed. Type: number Default: 0.5 | no | — |
| string_array_encoding | Encodes 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_type | Allows to control the type of string array call indexes. Type: string[] (comma separated, without whitespaces) Default: [] | no | — |
| string_array_index_shift | Enables additional index shift for all string array calls. Type: boolean Default: true | no | — |
| string_array_rotate | Enable rotation of string array values during obfuscation. Type: boolean Default: true | no | — |
| string_array_shuffle | Randomly shuffles string array items. Type: boolean Default: true | no | — |
| string_array_wrappers_count | Sets the count of wrappers for the string array inside each root or function scope. Type: number Default: 1 | no | — |
| string_array_wrappers_chained_calls | Enables the chained calls between string array wrappers. Type: boolean Default: true | no | — |
| string_array_wrappers_parameters_max_count | Allows to control the maximum number of string array wrappers parameters. Type: number Default: 2 | no | — |
| string_array_wrappers_type | Allows 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_threshold | The probability that the literal string will be inserted into `string_array` (Default: 0.8, Min: 0, Max: 1). Type: number Default: 0.8 | no | — |
| target | Allows to set target environment for obfuscated code. Values: browser, browser-no-eval, node. Default: browser. Type: string Default: browser | no | — |
| transform_object_keys | Enables transformation of object keys. Type: boolean Default: false | no | — |
| unicode_escape_sequence | Allows to enable/disable string conversion to unicode escape sequence. Type: boolean Default: false | no | — |
Outputs
no outputs