source:
trip-planner-front/node_modules/set-blocking/index.js@
1ad8e64
Last change on this file since 1ad8e64 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 252 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 1 | module.exports = function (blocking) { |
2 | [process.stdout, process.stderr].forEach(function (stream) { | |
3 | if (stream._handle && stream.isTTY && typeof stream._handle.setBlocking === 'function') { | |
4 | stream._handle.setBlocking(blocking) | |
5 | } | |
6 | }) | |
7 | } |
Note:
See TracBrowser
for help on using the repository browser.