npm.io
7.2.0 • Published 2 years agoCLI

webcrack-extensions

Licence
MIT
Version
7.2.0
Deps
10
Size
601 kB
Vulns
0
Weekly
0
Stars
2.9K

Test npm license Netlify Status

webcrack

webcrack is a tool for reverse engineering javascript. It can deobfuscate obfuscator.io, unminify, 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 - 500% faster than synchrony
  • 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 webcrack

Examples:

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

API

npm install webcrack

Examples:

import fs from 'fs';
import { webcrack } from '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');

Keywords