system-prompts-and-models-o.../unified-ai-platform/node_modules/set-blocking/index.js
dopeuni444 b5a22951ae nhj
more
2025-07-31 12:23:33 +04:00

8 lines
252 B
JavaScript

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)
}
})
}