4
0
Fork 0
mirror of https://github.com/actions/setup-node.git synced 2025-11-12 07:13:50 +00:00
setup-node/node_modules/set-blocking/index.js
eric sciple ae5dcb46c8 .
2020-01-24 12:30:26 -05: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)
}
})
}