WebOptimizer.JSObfuscator 1.1.5

dotnet add package WebOptimizer.JSObfuscator --version 1.1.5
NuGet\Install-Package WebOptimizer.JSObfuscator -Version 1.1.5
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.1.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WebOptimizer.JSObfuscator --version 1.1.5
#r "nuget: WebOptimizer.JSObfuscator, 1.1.5"
#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.1.5

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

WebOptimizer JavaScript Obfuscator Plugin

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

Getting Started

  1. Basic Configuration

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

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

    Tailor the obfuscation process with specific 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);
    });
    

Documentation

For more information please refer to the GitHub Repository and Documentation

Feedback

Your feedback and suggestions are highly valued. If you have any comments or encounter any issues, please don't hesitate to reach out through:

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 94 3/31/2024
1.1.4 87 3/31/2024
1.1.3 82 3/31/2024
1.1.2 71 3/21/2024
1.1.0 95 3/20/2024
1.0.1 94 3/16/2024

This version 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.