exit.cjs 249 B

1234567
  1. // workaround for tty output truncation upon process.exit()
  2. // https://github.com/nodejs/node/issues/6456
  3. [process.stdout, process.stderr].forEach((s) => {
  4. s && s.isTTY && s._handle && s._handle.setBlocking &&
  5. s._handle.setBlocking(true)
  6. });