array.js
This file
Path
lib/ipc/array.js
4 lines · 196 bytes · JavaScript
Last changed by
Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68
History of this fileTake it
12345// The `ipc` option adds an `ipc` item to the `stdio` optionexport const normalizeIpcStdioArray = (stdioArray, ipc) => ipc && !stdioArray.includes('ipc') ? [...stdioArray, 'ipc'] : stdioArray;