question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[CLI] "Reserved Names" are Ignored When "Rename Globals" is Enabled

See original GitHub issue

Related to the closed javascript-obfuscator/javascript-obfuscator-ui#27 - Still happening for me @2.10.1

CLI test.js --output test.min.js --reserved-names 'a' --rename-globals true --log true

test.js var a;

test.min.js var a0_0x2ffb6f;

CLI Output

[javascript-obfuscator-cli] Obfuscating file: test.js… [javascript-obfuscator] Version: 2.10.1_2021-01-01T13:47:46.265Z [javascript-obfuscator] Obfuscation started… [javascript-obfuscator] Random generator seed: 583819106… [javascript-obfuscator] Code transformation stage: PreparingTransformers… [javascript-obfuscator] AST transformation stage: Initializing… [javascript-obfuscator] AST transformation stage: Preparing… [javascript-obfuscator] AST transformation stage: Converting… [javascript-obfuscator] AST transformation stage: RenameIdentifiers… [javascript-obfuscator] AST transformation stage: StringArray… [javascript-obfuscator] AST transformation stage: Simplifying… [javascript-obfuscator] AST transformation stage: Finalizing… [javascript-obfuscator] Code transformation stage: FinalizingTransformers… [javascript-obfuscator] Obfuscation completed. Total time: 0.035 sec.

NPM $ npm list -g | grep javascript -- javascript-obfuscator@2.10.1 +-- @javascript-obfuscator/escodegen@2.1.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sanex3339commented, Apr 18, 2021

I can’t reproduce. With your command and source code I got the following output:

var a;

image

0reactions
HossamElwahshcommented, Apr 18, 2021

Running the command from git bash works correctly

Changing 'a' to "a" in phpStorm fixed the issue

image

Thanks for following up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reserved words in DynamoDB - AWS Documentation
The following keywords are reserved for use by DynamoDB. Do not use any of these words as attribute names in expressions. This list...
Read more >
Usage - OpenAPI Generator
The most commonly used openapi-generator-cli commands are: ... displays the reserved words which may result in renamed model or.
Read more >
npm ERR! Error: EPERM: operation not permitted, rename
I got it working when tried npm install with a force option to fetch remote resources even if a local copy exists ...
Read more >
A powerful obfuscator for JavaScript and Node.js - GitHub
Enables renaming of property names. All built-in DOM properties and properties in core JavaScript classes will be ignored. To switch between safe and...
Read more >
CLI options - Terragrunt
This will recursively search the current working directory for any folders that contain Terragrunt modules and run apply in each one, concurrently, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found