<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Node.js on recca0120 技術筆記</title><link>https://recca0120.github.io/tags/node.js/</link><description>Recent content in Node.js on recca0120 技術筆記</description><generator>Hugo -- gohugo.io</generator><language>zh-hant-tw</language><lastBuildDate>Sun, 26 Apr 2026 04:55:00 +0800</lastBuildDate><atom:link href="https://recca0120.github.io/tags/node.js/index.xml" rel="self" type="application/rss+xml"/><item><title>Node.js spawn 子行程 stdout 被截斷：六個方案比過，只有寫檔有用</title><link>https://recca0120.github.io/2026/04/26/nodejs-spawn-stdout-truncated/</link><pubDate>Sun, 26 Apr 2026 04:55:00 +0800</pubDate><guid>https://recca0120.github.io/2026/04/26/nodejs-spawn-stdout-truncated/</guid><description>Node.js spawn 大量輸出的 CLI，最後幾 KB 在 process.exit() 時消失。比較 6 種解法後，唯一可靠的純 stdlib 跨平台方案是把 stdout fd 直接接到檔案。</description><content:encoded>&lt;![CDATA[Node.js spawn 大量輸出的 CLI，最後幾 KB 在 process.exit() 時消失。比較 6 種解法後，唯一可靠的純 stdlib 跨平台方案是把 stdout fd 直接接到檔案。<br/><img src="https://recca0120.github.io/2026/04/26/nodejs-spawn-stdout-truncated/featured.png" alt="Featured image"/>]]></content:encoded><enclosure url="https://recca0120.github.io/2026/04/26/nodejs-spawn-stdout-truncated/featured.png" type="image/png" length="0"/><media:content url="https://recca0120.github.io/2026/04/26/nodejs-spawn-stdout-truncated/featured.png" medium="image"/><category>Node.js</category><category>stdio</category><category>spawn</category><category>DevOps</category></item></channel></rss>