Skip to content
PluginStats

webpack-plugin-codefend weekly downloads statistics

By Codefend · npm · Webpack plugins

Webpack plugin for code obfuscation based on Codefend

View on npm Fresh · Dec 6, 2026

webpack-plugin-codefend has 139 recorded weekly downloads on npm, an increase of 415% over the past 30 days, ranking #2560 of 3,247 tracked listings.

Weekly downloads
139
Official API · Dec 5, 2026
7-day growth
-62.7%
-234 weekly downloads
30-day growth
+415%
+112 weekly downloads
90-day growth
+1886%
+132 weekly downloads
Rank
#2560
▼ 333 in 7 days

About webpack-plugin-codefend

<p align="center"> <img src="./public/img/logo.png"> </p>

webpack-plugin-codefend

Latest CI workflow status NPM npm unpacked size NPM NPM

Webpack plugin for code obfuscation based on Codefend.

Supports Webpack 5.

Installation

Install the plugin in your existing Webpack project:

npm install -D webpack-plugin-codefend

Usage

Recommended setup

Add the plugin to your webpack.config.mjs. Keep any other plugins and build settings your project needs.

import { fileURLToPath } from "node:url";
import { WebpackPluginCodefend } from "webpack-plugin-codefend";

export default {
  mode: "production",
  entry: "./src/main.js",
  output: {
    filename: "bundle.js",
    path: fileURLToPath(new URL("./dist", import.meta.url)),
  },
  plugins: [new WebpackPluginCodefend({ parser: { name: "startWithMAndUnderscore" } })],
};
Custom options

Configure parser selection, obfuscation, and statistics with the parser, transformation, and debug options:

import { fileURLToPath } from "node:url";
import { WebpackPluginCodefend } from "webpack-plugin-codefend";

export default {
  mode: "production",
  entry: "./src/main.js",
  output: {
    filename: "bundle.js",
    path: fileURLToPath(new URL("./dist", import.meta.url)),
  },
  plugins: [
    new WebpackPluginCodefend({
      parser: { name: "startWithMAndUnderscore" },
      transformation: {
        // Prefix for generated names.
        prefix: "Ox",

        // Explicit replacements for selected words.
        static: [{ from: "predefined_secret", to: "123456" }],

        // Words that should retain their original spelling.
        ignore: ["node_modules"],

        // Optional names to use before generating prefixed names.
        pool: ["QueenOfHeart"],
      },
      debug: {
        // Display statistics for transformed words.
        stats: true,
      },
    }),
  ],
};

transformation.ignore contains words to preserve, not file paths or module filters. Statistics are enabled by default; use debug: { stats: false } to disable them.

Parser selection

parser.name accepts these two presets:

NameSelection
startWithMAndUnderscoreRecommended for new projects: explicitly marked m_ names.
codeOnlyThe existing broader underscore naming rule; retained as the default.

We recommend startWithMAndUnderscore because narrower selection helps leave unrelated names such as external_value and LED_BUILTIN unchanged. Use lowercase m_, followed by an ASCII letter and then letters or digits. For example, m_Total and m_value2 are selected; m_2total and m_total_amount are excluded.

Omitting parser, using parser: {}, or selecting codeOnly preserves the existing selection behavior. Custom regex lists and other core presets are not accepted by this plugin. Explicit static mappings still apply to their configured literal keys.

CLI settings for source copying and file/folder renaming are separate. See parser presets and the configuration reference.

Naming convention

Use the recommended m_ convention for application-owned names whose callers you control:

function m_add(m_left, m_right) {
  return m_left + m_right;
}

console.log(m_add(2, 3));

Both supported parsers select these m_ names:

function Ox0(Ox1, Ox2) {
  return Ox1 + Ox2;
}

console.log(Ox0(2, 3));

Both versions print 5. Generated names can vary with the input and build order. See the code naming conventions for other supported prefixes.

Codefend matches source text, so replacements can also affect strings and property names. Keep public exports, framework APIs, and external data contracts stable with transformation.ignore, and test the built application. Test custom pools across all modules before adopting them.

Migrate an existing project with AI

Use the AI migration prompt to adapt an existing project's internal variables, functions, classes, parameters, and members to Codefend's naming conventions. The guide provides a copyable prompt that asks your coding assistant to update references, preserve external interfaces and data keys, and test both the renamed source and the Codefend output.

Build behavior

The plugin transforms emitted assets during Webpack's asset-processing stage and prints statistics when compilation finishes. It runs whenever included in the configuration; the examples above configure a production build.

For development builds, include the plugin conditionally in your existing configuration if you want to leave development output unchanged. Verify emitted CSS, binary assets, multiple chunks, and interactions with other asset plugins in your application.

Build with your usual project command, or run:

npx webpack --config webpack.config.mjs

Examples…

Description from the npm listing.

  • webpack
  • codefend
  • webpack-plugin
  • plugin
  • obfuscate
  • obfuscation
  • obfuscator
  • uglification
  • uglify
  • uglifier
  • vue
  • react
  • angular
  • svelte

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

webpack-plugin-codefend weekly downloads on npm, last 90 days: 139 weekly downloads as of Dec 5, 2026, +1886% over 90 days.webpack-plugin-codefendWeekly downloads on npm · Last 90 days139downloads / week+1886% over 90 days0100200300400500Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
webpack-plugin-codefend weekly downloads on npm, last 90 days: 139 weekly downloads as of Dec 5, 2026, +1886% over 90 days.

7/30/90-day growth

webpack-plugin-codefend weekly downloads growth on npm: -62.7% over 7 days, +415% over 30 days, +1886% over 90 days.webpack-plugin-codefendWeekly downloads growth on npm139downloads / week now7-day growth-234 weekly downloads-62.7%30-day growth+112 weekly downloads+415%90-day growth+132 weekly downloads+1886%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
webpack-plugin-codefend weekly downloads growth on npm: -62.7% over 7 days, +415% over 30 days, +1886% over 90 days.

Ranking history

webpack-plugin-codefend npm ranking history: currently #2560 (by weekly downloads).webpack-plugin-codefendnpm ranking · by weekly downloads · Last 90 days#2560current rank#1600#1800#2000#2200#2400#2600#2800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 37 observations · Updated Dec 5, 2026pluginstats.com
webpack-plugin-codefend npm ranking history: currently #2560 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 128, #20 (overall #2,560)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 8, #17 (overall #157)
Webpack plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for webpack-plugin-codefend
Date (UTC)Weekly downloadsChange vs. previous
139-140
279-11
290-129
419-1
420+18
402+8
394+21
373+181
192+4
188+161
27-1
28-2
30-2
32—

Similar npm Webpack plugins plugins

All 20 webpack-plugin-codefend alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/webpack-plugin-codefend. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.