npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

webcrack-unpack

v1.0.2

Published

CLI tool to unpack JavaScript files using webcrack with parallel processing

Downloads

12

Readme

Webcrack Unpack

A TypeScript CLI tool to unpack JavaScript files using webcrack with parallel processing.

Features

  • Parallel Processing: Process multiple JavaScript files simultaneously using configurable thread count
  • Recursive Scanning: Automatically finds all .js and .min.js files in subdirectories
  • Smart Output: Preserves directory structure and renames output files appropriately
  • Progress Tracking: Real-time progress updates with colored output
  • Error Handling: Comprehensive error handling with detailed logging

Installation

# Install globally via npm
npm install -g webcrack-unpack

# Or use with npx (recommended - no installation required)
npx webcrack-unpack [options]

# Or install locally in your project
npm install webcrack-unpack

Usage

webcrack-unpack [source_directory] [output_directory] [options]

Arguments

  • source_directory - Directory to scan for JS files (default: current directory)
  • output_directory - Directory to output unpacked files (default: source_directory/unpacked)

Options

  • -s, --source <path> - Source directory to scan for JS files
  • -o, --output <path> - Output directory for unpacked files
  • -t, --threads <number> - Number of parallel threads (default: number of CPU cores)
  • -h, --help - Display help information
  • -V, --version - Display version number

Examples

# Process current directory, output to ./unpacked, auto threads
webcrack-unpack

# Process specific directory, output to ./unpacked
webcrack-unpack /path/to/source

# Process with custom output directory and 4 threads
webcrack-unpack /path/to/source /path/to/output --threads 4

# Using options instead of positional arguments
webcrack-unpack --source /path/to/source --output /path/to/output --threads 4

# Mix positional arguments with options
webcrack-unpack /path/to/source --output /path/to/output -t 8

# Use npx without installation
npx webcrack-unpack --source /path/to/source --output /path/to/output -t 8

Output

The tool will:

  1. Scan the source directory recursively for JavaScript files
  2. Process each file using webcrack to deobfuscate and unpack
  3. Save results maintaining the original directory structure:
    • bundle.jsonoriginal_filename.json
    • deobfuscated.jsoriginal_filename.js
    • Any additional files created by webcrack

Requirements

  • Node.js 16.0.0 or higher
  • webcrack library (automatically installed as dependency)

Development

# Clone and install dependencies
git clone <repository>
cd webcrack-unpack
pnpm install

# Build the project
pnpm run build

# Run in development mode
pnpm run dev

# Test the CLI
node dist/index.js --help

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT