2020-07-04 04:08:31 +00:00
|
|
|
const strom = require("strom");
|
2018-12-04 06:30:38 +00:00
|
|
|
const catProcess = require("child_process").exec("grep -o ab");
|
2018-12-04 06:40:46 +00:00
|
|
|
|
2020-07-04 04:08:31 +00:00
|
|
|
strom.fromArray(["a", "b", "c"])
|
|
|
|
.pipe(strom.duplex(catProcess.stdin, catProcess.stdout))
|
2018-12-04 06:30:38 +00:00
|
|
|
.pipe(process.stdout);
|