stromjs
Version:
Dependency-free streams utils for Node.js
15 lines (14 loc) • 438 B
JavaScript
exports.__esModule = true;
exports.child = void 0;
var duplex_1 = require("./duplex");
function child(childProcess) {
if (childProcess.stdin === null) {
throw new Error("childProcess.stdin is null");
}
else if (childProcess.stdout === null) {
throw new Error("childProcess.stdout is null");
}
return (0, duplex_1.duplex)(childProcess.stdin, childProcess.stdout);
}
exports.child = child;
;