https://github.com/ccnokes/node-fifo-example
Very basic example demonstrating communication between node.js and other processes using a named pipe or FIFO
https://github.com/ccnokes/node-fifo-example
Last synced: 8 months ago
JSON representation
Very basic example demonstrating communication between node.js and other processes using a named pipe or FIFO
- Host: GitHub
- URL: https://github.com/ccnokes/node-fifo-example
- Owner: ccnokes
- Created: 2016-10-25T18:59:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-01-17T17:01:47.000Z (over 4 years ago)
- Last Synced: 2025-05-07T21:04:13.083Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 32
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-fifo-example
Run with `npm start`
One node.js process will create a named pipe/FIFO, and log out any data written to it. The second node.js process will write to it once a second. A bash script and a C++ program will also write to it once. Look at `index.js` to see what's going on.
This only works on macOS.
Full context for this repository in this [article](https://cameronnokes.com/blog/deep-dive-into-electron's-main-and-renderer-processes/#is-ipc-using-some-networking-protocol-eg-tcp-http-or-something-crazier-underneath-the-hood).