Newer
Older
alert / js / node_modules / set-blocking / index.js
@Réz István Réz István on 18 Nov 2021 252 bytes first commit
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)
    }
  })
}