ipc-send.js
This file
Path
test/fixtures/ipc-send.js
7 lines · 219 bytes · JavaScript
Last changed by
Log IPC messages with `verbose: 'full'` (#1063)ehmickybefore adoption839c2fe
History of this fileTake it
Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68
line 1why, one step back1#!/usr/bin/env nodeLog IPC messages with `verbose: 'full'` (#1063)ehmickybefore adoption839c2fe
line 2why, one step back2import {argv} from 'node:process';Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68
lines 3–5why, one step back3import {sendMessage} from '../../index.js';4import {foobarString} from '../helpers/input.js';5Log IPC messages with `verbose: 'full'` (#1063)ehmickybefore adoption839c2fe
lines 6–7why, one step back6const message = argv[2] || foobarString;7await sendMessage(message);