From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- node_modules/get-stdin/index.js | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 node_modules/get-stdin/index.js (limited to 'node_modules/get-stdin/index.js') diff --git a/node_modules/get-stdin/index.js b/node_modules/get-stdin/index.js deleted file mode 100644 index e8182da3..00000000 --- a/node_modules/get-stdin/index.js +++ /dev/null @@ -1,33 +0,0 @@ -const {stdin} = process; - -export default async function getStdin() { - let result = ''; - - if (stdin.isTTY) { - return result; - } - - stdin.setEncoding('utf8'); - - for await (const chunk of stdin) { - result += chunk; - } - - return result; -} - -getStdin.buffer = async () => { - const result = []; - let length = 0; - - if (stdin.isTTY) { - return Buffer.concat([]); - } - - for await (const chunk of stdin) { - result.push(chunk); - length += chunk.length; - } - - return Buffer.concat(result, length); -}; -- cgit v1.2.3