🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

fuck-js-variable-loader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fuck-js-variable-loader

混淆js的变量名, 变得难懂

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

fuck-js-variable-loader

混淆变量名的 loader, 专门针对js文件, 其他文件也可以, 谨慎操作

效果如图

let WWWWWwwWwW = 1;
let nima = '';
let bar;

let fn = function () {
  WWWWWwwWwW++;
};

fn();
console.log(WWWWWwwWwW);

使用方法如下:

  • 下载 npm i fuck-js-variable-loader
  • 使用 和平常的 loader 使用方法一致

全部配置属性

module: {
    rules: [
      ...
      {
        test: /\.js$/,
        use: {
          loader: 'fuck-js-variable-loader',
          options: {
            basicByte: str,  // 比如'i L l vv w'
            isRandom: bool,  //大小写混淆
            repeat: number,  // 变量长度
          }
        }
      },
    ]
  },

Keywords

webpack

FAQs

Package last updated on 18 Oct 2020

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