What problem does it solve?
This Skill transforms minified, bundled, or transpiled JavaScript back into readable modules, allowing for easier reading, auditing, debugging, and recovery of source code.
Core Features & Use Cases
- Bundle Splitting: Decompose webpack, esbuild, Bun, Browserify, SystemJS, AMD, and Rollup/Vite bundles into individual modules.
- Transpiler Recovery: Reverse Babel, TypeScript, and SWC runtime helpers like async/await, classes, JSX, enums, optional chaining, etc.
- Minifier Recovery: Undo minification artifacts like sequence expressions, flipped comparisons, and alias inlining.
- Source Maps: Utilize source maps for name recovery and import deduplication.
- Rewrite Levels: Offers three levels of rewrites: minimal, standard, and aggressive, allowing users to balance readability and semantic correctness.
- Use Case: Imagine you have a minified JavaScript bundle from a production application. Use this Skill to unpack and decompile the bundle, making it easier to understand and audit the code.
Quick Start
To decompile a JavaScript file, run the following command:
wakaru input.js -o output.js