Download node_modules/yargs/build/lib/utils/set-blocking.js from xxsxx/cld: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/spaces/xxsxx/cld/resolve/main/node_modules/yargs/build/lib/utils/set-blocking.js
- Command line
-
hf download hf://spaces/xxsxx/cld/node_modules/yargs/build/lib/utils/set-blocking.js
-
curl -L -o set-blocking.js https://huggingface.co/spaces/xxsxx/cld/resolve/main/node_modules/yargs/build/lib/utils/set-blocking.js
386 Bytes
| 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); | |
| } | |
| }); | |
| } | |