strong-child
A module that exposes a duplex stream interface for communicating with
strong-parent
. This creates
a simple way to receive a stream of data from the parent process via the
filesystem and send it back up to the parent in the same way.
install
npm i strong-child
Usage
See [strong-parent
] for the parent process usage. Below is how you would
create a child process.
var strongChild = ;var jsonStream = ;var someExpensiveObjectTransform = ; var duplex = ; //// Receive some newline delimited JSON, transform it and send it back to the// parent//duplex ;
Tests
Tests found in strong-parent
License
MIT