1st version

This commit is contained in:
STEINNI
2025-11-04 07:36:02 +00:00
commit 2723c34a5d
177 changed files with 53167 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
export default function setBlocking(blocking) {
if (typeof process === 'undefined')
return;
[process.stdout, process.stderr].forEach(_stream => {
const stream = _stream;
if (stream._handle &&
stream.isTTY &&
typeof stream._handle.setBlocking === 'function') {
stream._handle.setBlocking(blocking);
}
});
}