![]() |
VOOZH | about |
dotnet add package WebOptimizer.JSObfuscator --version 1.1.5
NuGet\Install-Package WebOptimizer.JSObfuscator -Version 1.1.5
<PackageReference Include="WebOptimizer.JSObfuscator" Version="1.1.5" />
<PackageVersion Include="WebOptimizer.JSObfuscator" Version="1.1.5" />Directory.Packages.props
<PackageReference Include="WebOptimizer.JSObfuscator" />Project file
paket add WebOptimizer.JSObfuscator --version 1.1.5
#r "nuget: WebOptimizer.JSObfuscator, 1.1.5"
#:package WebOptimizer.JSObfuscator@1.1.5
#addin nuget:?package=WebOptimizer.JSObfuscator&version=1.1.5Install as a Cake Addin
#tool nuget:?package=WebOptimizer.JSObfuscator&version=1.1.5Install as a Cake Tool
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.
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);
});
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);
});
For more information please refer to the GitHub Repository and Documentation
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
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.