WebOptimizer.JSObfuscator 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package WebOptimizer.JSObfuscator --version 1.0.1
NuGet\Install-Package WebOptimizer.JSObfuscator -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WebOptimizer.JSObfuscator" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WebOptimizer.JSObfuscator --version 1.0.1
#r "nuget: WebOptimizer.JSObfuscator, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WebOptimizer.JSObfuscator as a Cake Addin
#addin nuget:?package=WebOptimizer.JSObfuscator&version=1.0.1

// Install WebOptimizer.JSObfuscator as a Cake Tool
#tool nuget:?package=WebOptimizer.JSObfuscator&version=1.0.1

WebOptimizer JavaScript Obfuscator Plugin

The WebOptimizer JavaScript Obfuscator plugin integrates directly into the WebOptimizer asset pipeline, providing an advanced solution for obfuscating JavaScript files within ASP.NET Core applications. This plugin leverages sophisticated obfuscation techniques to enhance the security of your JavaScript code, making it more difficult to reverse-engineer or tamper with.

Getting Started

  1. Basic Configuration

    Add a JavaScript bundle and apply obfuscation in your Startup.cs or Program.cs:

    builder.Services.AddWebOptimizer(pipeline =>
    {
        pipeline.AddJavaScriptBundle("/js/bundle.js", "js/site.js", "js/other.js")
                .ObfuscateJavascript(ObfuscationLevel.LowObfuscationHighPerformanceOptions);
    });
    
  2. Custom Obfuscation Settings

    Customize the obfuscation process with detailed options:

    builder.Services.AddWebOptimizer(pipeline =>
    {
        var options = new JavaScriptObfuscatorOptionsBuilder()
                       .SetDebugProtection(true, interval: 4000)
                       .SetDisableConsoleOutput(true)
                       .SetUnicodeEscapeSequence(true)
                       .Build();
    
        pipeline.AddJavaScriptBundle("/js/bundle.js", "js/site.js", "js/other.js")
                .ObfuscateJavascript(options);
    });
    

Additional Documentation

For more detailed information about configuration options and advanced usage, please visit the official GitHub repository:

Feedback

We greatly appreciate your feedback and suggestions. If you have any comments or face any issues, please feel free to reach out through:

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.5 107 3/31/2024
1.1.4 93 3/31/2024
1.1.3 88 3/31/2024
1.1.2 80 3/21/2024
1.1.0 101 3/20/2024
1.0.1 101 3/16/2024

Version 1.0.1 introduces robust obfuscation capabilities for JavaScript files within the WebOptimizer pipeline, featuring a suite of techniques for improved code security in ASP.NET Core projects.