#electron #applications #execute #process #repl #javascript #command-line

app electron-repl

A command-line REPL tool for Electron applications that allows you to execute JavaScript code in the main process

2 releases

new 0.1.1 Jan 31, 2025
0.1.0 Jan 31, 2025

#401 in Web programming

MIT license

19KB
180 lines

[Japanese/日本語]

electron-repl

A command-line REPL tool for Electron applications that allows you to execute JavaScript code in the main process.

Features

  • Connect to running Electron applications
  • Execute JavaScript code in the main process
  • Support for macOS and Linux (Windows support coming soon)
  • Command history support
  • Colored output for better readability

Installation

cargo install electron-repl

Usage

electron-repl <app-name> [port]

Arguments

  • app-name: Name of the Electron application (required)
  • port: Port number for DevTools (default: 9222)

Example

electron-repl Discord

Supported Platforms

  • macOS
  • Linux
  • Windows (coming soon)

License

MIT License - see LICENSE for details

Dependencies

~12–24MB
~337K SLoC