Skip to content
Myr

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 file

Take it

Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68

line 1why, one step back
1#!/usr/bin/env node

Log IPC messages with `verbose: 'full'` (#1063)ehmickybefore adoption839c2fe

line 2why, one step back
2import {argv} from 'node:process';

Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68

lines 3–5why, one step back
3import {sendMessage} from '../../index.js';
4import {foobarString} from '../helpers/input.js';5

Log IPC messages with `verbose: 'full'` (#1063)ehmickybefore adoption839c2fe

lines 6–7why, one step back
6const message = argv[2] || foobarString;
7await sendMessage(message);