• File: index.js
  • Full Path: /home6/laduliya/mobile.digitalilab.com/set-blocking/index.js
  • Date Modified: 05/17/2016 10:57 PM
  • File size: 252 bytes
  • MIME-type: text/plain
  • Charset: utf-8
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)
    }
  })
}