Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add dangerously-overwrite option to CLI and API#1305

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
tnrich wants to merge4 commits intojavascript-obfuscator:master
base:master
Choose a base branch
Loading
fromtnrich:add-dangerously-overwrite-option

Conversation

@tnrich
Copy link

@tnrichtnrich commentedFeb 26, 2025
edited
Loading

@sanex3339

Fixes#403#412

Add a new option--dangerously-overwrite to the CLI to enable overwriting original files with obfuscated content.

  • src/cli/JavaScriptObfuscatorCLI.ts
    • Add the--dangerously-overwrite option to theconfigureCommands method.
    • Update theprocessSourceCodeData method to handle the--dangerously-overwrite option.
  • src/cli/utils/ObfuscatedCodeFileUtils.ts
    • Add a new methodgetOutputCodePathForOverwrite to return the original file path.
    • Update thegetOutputCodePath method to handle the--dangerously-overwrite option.
  • test/functional-tests/cli/JavaScriptObfuscatorCLI.spec.ts
    • Add a new test case to verify the--dangerously-overwrite option works as expected.
  • README.md
    • Add documentation for the new--dangerously-overwrite option.

Fixesjavascript-obfuscator#403Add a new option `--dangerously_overwrite` to the CLI to enable overwriting original files with obfuscated content.* **src/cli/JavaScriptObfuscatorCLI.ts**  - Add the `--dangerously_overwrite` option to the `configureCommands` method.  - Update the `processSourceCodeData` method to handle the `--dangerously_overwrite` option.* **src/cli/utils/ObfuscatedCodeFileUtils.ts**  - Add a new method `getOutputCodePathForOverwrite` to return the original file path.  - Update the `getOutputCodePath` method to handle the `--dangerously_overwrite` option.* **test/functional-tests/cli/JavaScriptObfuscatorCLI.spec.ts**  - Add a new test case to verify the `--dangerously_overwrite` option works as expected.* **README.md**  - Add documentation for the new `--dangerously_overwrite` option.---For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/javascript-obfuscator/javascript-obfuscator/issues/403?shareId=XXXX-XXXX-XXXX-XXXX).
@tnrichtnrich changed the titleAdd dangerously overwrite option to CLI and APIAdd dangerously-overwrite option to CLI and APIFeb 26, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Obfuscate folder but keep same file names

1 participant

@tnrich

[8]ページ先頭

©2009-2025 Movatter.jp