forked from ard/ruoyi-api

zhangjianrock@163.com
2024-01-14 96ff86c82a9c7892a88cdee1a00b710a0006258a
1
2
3
4
5
6
7
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)
    }
  })
}