
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
fuck-js-variable-loader
Advanced tools
混淆变量名的 loader, 专门针对js文件, 其他文件也可以, 谨慎操作
效果如图
let WWWWWwwWwW = 1;
let nima = '';
let bar;
let fn = function () {
WWWWWwwWwW++;
};
fn();
console.log(WWWWWwwWwW);
使用方法如下:
npm i fuck-js-variable-loaderloader 使用方法一致module: {
rules: [
...
{
test: /\.js$/,
use: {
loader: 'fuck-js-variable-loader',
options: {
basicByte: str, // 比如'i L l vv w'
isRandom: bool, //大小写混淆
repeat: number, // 变量长度
}
}
},
]
},
FAQs
混淆js的变量名, 变得难懂
We found that fuck-js-variable-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.