javascript-obfuscator /javascript-obfuscator

A powerful obfuscator for JavaScript and Node.js

★ 16,333⑂ 1,746👁 183⑃ 486● 927▤ 244
TypeScriptBSD-2-ClauseCreated 2016-05-09obfuscator.io
下载:5.10.1 version5.10.1 ↓5.10.12026-11-12
+0
日增长
16,333
stars
1,746
forks
183
watchers
486
prs
927
issues
244
releases

README

JavaScript obfuscator

!logo

---

 :rocket: Obfuscator.io with VM Obfuscation



Obfuscator.io adds VM-based bytecode obfuscation to this package - your JavaScript functions are compiled to custom bytecode that runs on an embedded virtual machine. Each build produces unique opcodes and VM structure, making reverse engineering and automated deobfuscation dramatically harder.

| Protection goal | Free (this package)                                                               | obfuscator.io                                                                                                                                                                        |
| --- |-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Rename identifiers | ✅ variable/function renaming                                                      | ✅ + VM-local symbols never exposed as JavaScript                                                                                                                                                              |
| Obscure strings | ✅ string array + base64/rc4 | ✅ + strings embedded in bytecode constants                                                                                                                                                                    |
| Obscure control flow | ✅ control flow flattening | ✅ full bytecode virtualization, vmJumpsEncoding (runtime-computed jump targets), vmDeadCodeInjection (fake bytecode sequences)                                |
| Resist decompilation | ⚠️ output is still JavaScript | ✅ custom opcodes, vmStatefulOpcodes (position-dependent opcode mapping), vmMacroOps (fused instructions), vmDecoyOpcodes (fake opcode handlers) |
| Resist automated LLM-based analysis | ❌ fully vulnerable (no LLM-specific defenses) | ✅ bytecode encryption + anti-LLM defenses in vmSelfDefending and vmDebugProtection                                                                              |
| Encryption | ✅ stringArrayEncoding (base64/rc4 on extracted strings) | ✅ vmBytecodeEncoding (per-instruction encoding), vmBytecodeArrayEncoding (whole bytecode array as single block)                                        |
| Anti-debugging | ✅ debugProtection (freezes browser DevTools) | ✅ vmDebugProtection (multi-layered anti-debugging and anti-analysis defenses)                                                                                                         |
| Tamper detection | ✅ selfDefending (breaks if beautified) | ✅ vmSelfDefending (multi-layered tamper detection, anti-hooking, anti-reverse-engineering protection)                                                                                   |
| Runs offline, no network | ✅ | ❌ uses obfuscator.io API (requires tok

Top issues

Discussions

Latest release

5.10.1 version 5.10.1 2026-11-12
Fixed controlFlowFlattening changing let and const declarations into var inside functions passed as call arguments or used as operands, when var is the prevailing kind of variables. Fixes https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1471
 Fixed controlFlowFlattening turning a x in obj private brand check into invalid code. Fixes https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1472
 Fixed an escaped 'use\x20strict' directive being emitted as an actual 'use strict' directive. Fixes https://github.com/javascript-obfuscator/javascript-obfuscator/iss

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON