Skip to content
Myr

array.js

This file

Path

lib/ipc/array.js

4 lines · 165 bytes · JavaScript

Last changed by

Remove the old `stdio: [..., 'ipc']` syntax (#1245)Sindre Sorhusbefore adoptiondcf611c

History of this file

Take it

Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68

line 1why, one step back
1// The `ipc` option adds an `ipc` item to the `stdio` option

Remove the old `stdio: [..., 'ipc']` syntax (#1245)Sindre Sorhusbefore adoptiondcf611c

line 2why, one step back
2export const normalizeIpcStdioArray = (stdioArray, ipc) => ipc

Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68

lines 3–4why, one step back
3 ? [...stdioArray, 'ipc']
4 : stdioArray;