strom/samples/child.js
2018-12-04 01:40:46 -05:00

7 lines
192 B
JavaScript

const Mhysa = require("mhysa");
const catProcess = require("child_process").exec("grep -o ab");
Mhysa.fromArray(["a", "b", "c"])
.pipe(Mhysa.child(catProcess))
.pipe(process.stdout);