Sign in

洪 民憙 (Hong Minhee)

@hongminhee.org
320 followers 223 following 163 posts

國漢文混用맨. hongminhee.org

PostsRepliesMedia
洪 民憙 (Hong Minhee) @hongminhee.org · 21/08/2025
I've recently been working on Optique, a CLI parser combinator for TypeScript. Optique allows you to describe complex CLIs by combining smaller parts. You can also handle the CLI parsing results in a type-safe manner (see code below). optique.dev
const parser = or(
  object({
    type: constant("network"),
    host: option(
      "-h", "--host",
      string({ metavar: "HOST" }),
    ),
    port: option(
      "-p", "--port",
      integer({ metavar: "PORT", min: 0, max: 65535 }),
    ),
  }),
  object({
    type: constant("local"),
    file: option(
      "-s", "--socket-file",
      string({ metavar: "FILE" }),
    ),
  }),
)

type Result = InferValue<typeof parser>;

// The above type is inferred as:
type Result = {
    readonly type: "network";
    readonly host: string;
    readonly port: number;
} | {
    readonly type: "local";
    readonly file: string;
}
121
洪 民憙 (Hong Minhee) @hongminhee.org · 26/11/2024
Just released @logtape/sentry, a #LogTape sink for @sentry.io! Now you can easily send your logs to #Sentry. github.com/dahlia/logta...
LogTape records show up in Sentry.
0103
洪 民憙 (Hong Minhee) @hongminhee.org · 24/10/2024
今週土曜日に開催されるOSC 2024 Tokyo/FallにFedify/Hollo合同で出展します!可愛いFedifyのロゴのシールと『自分だけのフェディバースのマイクロブログを作ろう!』日本語版の紙の本を持って行く予定です。よろしくお願いします。 event.ospn.jp/osc2024-fall/ #Fedify #Hollo #osc24tk
042
洪 民憙 (Hong Minhee) @hongminhee.org · 04/09/2024
Oh, the #LogTape's GitHub repository has reached 400 stars! github.com/dahlia/logtape
A screenshot of LogTape's GitHub repository with 400 stars.
021
洪 民憙 (Hong Minhee) @hongminhee.org · 20/04/2024
#LogTape is a logging library for #JavaScript and #TypeScript. The highlights are: • 0 dependencies • Designed to be used in libs as well as apps • Supports #Node.js, #Deno, #Bun, edge funcs, and browsers • Structured logging • Hierarchical loggers • Simple sink interface github.com/dahlia/logtape
Screenshot: log messages printed out on the terminalScreenshot: log messages printed out on web browser's console
110
洪 民憙 (Hong Minhee) @hongminhee.org · 02/07/2023
오, 블루스카이에 오랜만에 글을 써 보는데… 이렇게 言語 고를 수 있는 윈도가 생겼다. 마스토돈과는 다르게 글 하나에 여러 言語를 고를 수도 있게 되어 있는 것 같다.
Post Languages
Which languages are used in this post?

Chinese
English
Japanese
Korean
…

Done
132