Can I set obsucator NOT to covert numbers to hexadecimal?

Author: TomcusCreated Sep 22, 2022Updated Sep 22, 2022

Hi, I have question if I can set for obfuscator not to convert numbers from decimal to hexadecimal.

For example default configuration on this:

javascript
let value = 10;

would end up like this:

javascript
let _0x17f4bc=0xa;

I know that I can get rid of the hexadecimal number by using identifierNamesGenerator: 'mangled-shuffled' in the config, but i didn't found any value for the numbers. Also would it be possible to have this conversion on the string array indexes?

Just to be sure the result from the examples, that I would like is:

javascript
let _0x17f4bc=10;

and with identifierNamesGenerator: 'mangled-shuffled':

javascript
let b=10;

Also I know that I can simply do find and replace and it would probably work, but I am just asking if there is anything available in the default script.

Source: javascript-obfuscator/javascript-obfuscator