Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI option --options-preset <string> does nothing. #1221

Open
DeivAstra opened this issue Dec 4, 2023 · 2 comments
Open

CLI option --options-preset <string> does nothing. #1221

DeivAstra opened this issue Dec 4, 2023 · 2 comments

Comments

@DeivAstra
Copy link

DeivAstra commented Dec 4, 2023

--options-preset [default, low-obfuscation, medium-obfuscation, high-obfuscation]

Expected Behavior

When I changes the option to different values the obfuscation result data size must grow.

Current Behavior

When I changes the option to different values the obfuscation result is remains the same.

Steps to Reproduce

#!/bin/bash

proj_home=/home/user/project

in_dir=$proj_home/obf-in
out_dir=$proj_home/obf-out

function compile {
	javascript-obfuscator \
		--options-preset high-obfuscation \
		--target browser-no-eval \
		--compact true \
		$in_dir --output $out_dir
}

rm -rf $out_dir
mkdir -p $out_dir

compile

Your Environment

Alpine Linux 3.18.5

  • Obfuscator version used: 4.1.0_2023-09-05T17:31:38.835Z
  • Node version used: v20.8.1

Log

[javascript-obfuscator-cli] Obfuscating file: /home/user/obf-in/test.js...

Minimal working example that will help to reproduce issue

Any js file, but for test I used:

class A {
	foo;
	bar = 1;
	#p = 'Private';
	static test() {
		foo.a = 5;
	}
}

Obfuscated files attached!
obf-bug-test.zip

@shpuryk
Copy link

shpuryk commented Jan 19, 2024

observe the same issue

@chanchangame
Copy link

Same problem when I installed this library in Windows using npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants