pipe-wrench
pipe-wrench
is a cross-platform IPC client/server implementation. It uses named pipes on windows and unix sockets elsewhere.
Installation
$ npm install --save pipe-wrench
Usage
Server:
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;
Client:
const client = ; const socket = ; // same identifier as on the server// socket is a node net.Socket.