Skip to main content
Home

Built and signed on GitHub Actions

Spy on ipc communications, by replacing the binary that is spawned with a wrapper that logs all the communication while still forwarding the messages to the original processes.

This package works with Deno
This package works with Deno
JSR Score
100%
Published
a year ago (0.2.6)

IPC-Spy

Spy on inter process comunication(IPC)

What does it do?

Spy on ipc communications, by replacing the binary that is spawned with a wrapper that logs all the communication while still forwarding the messages to the original processes.

This is for example useful to see what an lsp is sending exactly, or any other based ipc setup.

Install

deno install -A jsr:@sigmasd/ipc-spy

Usage

ipc-spy $pathTotargetfile

This will create a new executable with -spy suffix appeneded to it in the current directory.

The next step is to run the new program $file-spy or make another program call it (like a text editor in case of lsp).

Now the messages will be logged to $tmp/${executable_name}_stdin.log, $tmp/${executable_name_stdout}.log and $tmp/${executable_name_stderr}.log

Examples

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@sigmasd/ipc-spy

Import symbol

import * as ipc_spy from "@sigmasd/ipc-spy";
or

Import directly with a jsr specifier

import * as ipc_spy from "jsr:@sigmasd/ipc-spy";