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

app electron-repl

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

2 releases

0.1.1 Jan 31, 2025
0.1.0 Jan 31, 2025

#262 in Web programming

Download history 226/week @ 2025-01-27 41/week @ 2025-02-03 1/week @ 2025-02-10

68 downloads per month

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
~343K SLoC