File: exit.cjs

package info (click to toggle)
node-terser 5.38.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,156 kB
  • sloc: javascript: 99,692; makefile: 52; perl: 48; sh: 13
file content (7 lines) | stat: -rw-r--r-- 249 bytes parent folder | download | duplicates (28)
1
2
3
4
5
6
7
// workaround for tty output truncation upon process.exit()
// https://github.com/nodejs/node/issues/6456

[process.stdout, process.stderr].forEach((s) => {
  s && s.isTTY && s._handle && s._handle.setBlocking &&
    s._handle.setBlocking(true)
});