install-nix-action/node_modules/set-blocking/index.js
Domen Kožar 70742d22d9
v6
2019-11-19 17:50:30 +01:00

7 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)
}
})
}