You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
javascript-obfuscator index.js --config config.json # work
javascript-obfuscator --config config.json index.js # error# return: ReferenceError: Given input path must be a valid `.js` file or directory path
Expects
file what would be obfuscated should be parse fine. Flags, like --config or any else (like -o or --output and etc) shouldn't destroy command run if flags would be placed before js file.
Activity
sanex3339 commentedon Apr 7, 2021
Hi. Hm. Currently i got the file path here:
https://github.com/javascript-obfuscator/javascript-obfuscator/blob/master/src/cli/JavaScriptObfuscatorCLI.ts#L140
Maybe I can change the logic to parse arguments and detect argument with the input file path
sanex3339 commentedon Apr 7, 2021
Will fix it today. PR is almost ready.
Added ability to specify the path to the input file after specifying …
sanex3339 commentedon Apr 7, 2021
Released as 2.11.1