4
0
Fork 0
mirror of https://github.com/actions/setup-node.git synced 2025-11-11 23:03:50 +00:00
setup-node/node_modules/set-blocking/index.js
eric sciple 2b95e76931 .
2020-01-24 12:20:19 -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)
}
})
}