pipe-wrench is a cross-platform IPC client/server implementation. It uses named pipes on windows and unix sockets elsewhere.
$ npm install --save pipe-wrench
const server = ;const cleanup =;// Returns a cleanup function that removes the unix socket on unix systems// and is a no-op on win32 (named pipes are automatically cleaned up).process;
const client = ;const socket = ; // same identifier as on the server// socket is a node net.Socket.