ipc-disconnect.js
This file
Path
test/fixtures/ipc-disconnect.js
12 lines · 281 bytes · JavaScript
Last changed by
Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68
History of this fileTake it
12345678910111213#!/usr/bin/env nodeimport process from 'node:process';import {once} from 'node:events';import * as execaExports from '../../index.js';
const methodName = process.argv[2];
if (process.channel !== null) { await once(process, 'disconnect');}
await execaExports[methodName]();