Skip to content

ItsHarper/webcrack

 
 

Repository files navigation

@itsharper/webcrack

This fork of webcrack is intended as a stopgap measure until upstream is ready for my changes (see the Upstreaming plan section).

Note

@itsharper/webcrack has not yet been published to NPM

Changes from upstream

  • Compatible with node.js 22 and 24 (but not older)
  • Uses babel 8 beta (TODO)
  • Can be used from bundler-free Typescript projects without enabling skipLibCheck (and type-safety is improved with skipLibCheck enabled) (TODO)
    • Babel 8 being ESM-only is a core enabler of this

Upstreaming plan

All of my changes can be upstreamed once upstream is ready to do the following:

  • Update isolated-vm to version 6 or later
  • Update to babel 8
    • In beta as of August 2025

Original webcrack README (minimally-adapted)

Test npm license Netlify Status

webcrack

webcrack is a tool for reverse engineering javascript. It can deobfuscate obfuscator.io, unminify, transpile, and unpack webpack/browserify, to resemble the original source code as much as possible.

Try it in the online playground or view the documentation.

  • 🚀 Performance - Various optimizations to make it fast
  • 🛡️ Safety - Considers variable references and scope
  • 🔬 Auto-detection - Finds code patterns without needing a config
  • ✍🏻 Readability - Removes obfuscator/bundler artifacts
  • ⌨️ TypeScript - All code is written in TypeScript
  • 🧪 Tests - To make sure nothing breaks

Command Line Interface

npm install -g @itsharper/webcrack

Examples:

webcrack input.js
webcrack input.js > output.js
webcrack bundle.js -o output-dir

CLI Reference

API

npm install @itsharper/webcrack

Examples:

import fs from 'fs';
import { webcrack } from '@itsharper/webcrack';

const input = fs.readFileSync('bundle.js', 'utf8');

const result = await webcrack(input);
console.log(result.code);
console.log(result.bundle);
await result.save('output-dir');

API Reference

About

Interim soft-fork of webcrack

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 83.2%
  • JavaScript 16.2%
  • Other 0.6%