npm / javascript-obfuscator
javascript-obfuscator
What changed in javascript-obfuscator 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
3 new APIs and options1 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initjavascript-obfuscator 57 changes
New APIs and options 3
ApiError now carries the machine-readable cause sent by the API; quota refusals use dailyLimit or monthlyLimit.
Added a Pro API method that returns the usage left on the API key's plan.
Accepts the alias of a custom preset saved in the obfuscator.io dashboard; obfuscatePro() and the CLI fetch it and merge its options.
Behavior and default changes 1
The Node dist bundle is no longer minified, so uncaught errors print a readable stack frame instead of the whole bundle.
Fixes and other changes 3
Short-circuit evaluation of
&&,||and??is no longer broken by controlFlowFlattening.Default parameter objects are no longer shared across calls when using transformObjectKeys.
A VM preset name no longer fails locally when --pro-api-token is set; the name is passed to the Pro API.