1
0
mirror of https://gitea.com/actions/setup-node.git synced 2025-07-07 01:03:53 +08:00
setup-node/node_modules/set-blocking/index.js
eric sciple 422b9fdb15 .
2020-01-24 12:21:24 -05: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)
}
})
}