WUT_Computer_Science/EGUI/lab3/api/node_modules/set-blocking/index.js
2022-06-15 05:26:01 +02:00

8 lines
252 B
JavaScript

module.exports = function (blocking) {
[process.stdout, process.stderr].forEach(function (stream) {
if (stream._handle && stream.isTTY && typeof stream._handle.setBlocking === 'function') {
stream._handle.setBlocking(blocking)
}
})
}