<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mizdra</author_name>
  <author_url>https://blog.hatena.ne.jp/mizdra/</author_url>
  <blog_title>mizdra's blog</blog_title>
  <blog_url>https://www.mizdra.net/</blog_url>
  <categories>
    <anon>node.js</anon>
  </categories>
  <description>ターミナル向けに色付きの文字を format する関数を実装してて、そのテストを Vitest で書こうとしていた。 // src/format.ts function red(text: string): string { // ... } export function formatError(message: string): string { if (process.stderr.hasColors()) { return red('error: ') + message; } else { return 'error: ' + message; } } // src/format.t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mizdra.net%2Fentry%2F2025%2F03%2F18%2F004039&quot; title=&quot;child_process で起動されたプロセスでは process.stdout の一部プロパティが欠けている - mizdra&amp;#39;s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-03-18 00:40:39</published>
  <title>child_process で起動されたプロセスでは process.stdout の一部プロパティが欠けている</title>
  <type>rich</type>
  <url>https://www.mizdra.net/entry/2025/03/18/004039</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
