Say I have
node foo.js | node bar.js
is there a way to pass a handle on foo's stdin to bar?
I have a rare case where I'd like to communicate backwards in the pipeline.
At the least I know that I could send node bar.js the pid of node foo.js. Given that pid, on *nix, I should be able to write to foo's stdin using:
but is there a way to do the same on MacOS?