fifofile
v1.1.4
Published
Userland FIFO file
Downloads
552
Readme
fifofile
Userland FIFO file.
npm install fifofile
Usage
To consume, in any process
const FIFOFile = require('fifofile')
for await (const msg of new FIFOFile('/tmp/my-fifo')) {
console.log('incoming:', msg)
}
To produce, in any process
const FIFOFile = require('fifofile')
const fifo = new FIFOFile('/tmp/my-fifo')
fifo.write(Buffer.from('a msg'))
License
Apache-2.0