Socket
Book a DemoInstallSign in
Socket

vue-cli-plugin-javascript-obfuscator

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-cli-plugin-javascript-obfuscator

Vue CLI plugin for JavaScript obfuscation using javascript-obfuscator@4.x

1.0.5
latest
Source
npmnpm
Version published
Weekly downloads
27
-93.15%
Maintainers
1
Weekly downloads
 
Created
Source

vue-cli-plugin-javascript-obfuscator

A Vue CLI plugin to automatically obfuscate JavaScript files using javascript-obfuscator@4.x.

Installation

To install the plugin, run the following command:

vue add javascript-obfuscator

Configuration

After installing the plugin, you can configure it in your vue.config.js file under the pluginOptions field.

Example Configuration:

// vue.config.js

module.exports = {
  pluginOptions: {
    javascriptObfuscator: {
      // Files to include in obfuscation (can be a string or an array of strings/regex patterns)
      includes: [
        'app.*.js',
        '**/chunk-libs.*.js',  // Matches chunk-libs files for obfuscation
      ],

      // Options for the javascript-obfuscator
      obfuscatorOptions: {
        compact: true,  // Minify the code
        disableConsoleOutput: false,  // Keep console output
        rotateStringArray: true,  // Rotate the string array during obfuscation
        identifierNamesGenerator: 'hexadecimal',  // Use hexadecimal naming for identifiers
        selfDefending: true,  // Make the obfuscated code harder to read
      },
    },
  },
};

Keywords

vue

FAQs

Package last updated on 01 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.