esbuild icon indicating copy to clipboard operation
esbuild copied to clipboard

Support NO_EMOJI env var and/or --no-emoji flag

Open toastal opened this issue 7 months ago • 2 comments

I find their color & use of two character slots noisy/distracting in my terminal output. I would rather just turn them off. Seeing as they can cause issues with certain systems—proven by the existence of the isProbablyWindowsCommandPrompt which in name seems just a best guess—allow users to explicitly disable emoji, whatever their needs are.

Examples

  • Homebrew: with HOMEBREW_NO_EMOJI
  • Yarn: with --no-emoji flag

toastal avatar Jul 16 '25 07:07 toastal

You may be interested to know that you can already disable color in many tools (including esbuild) by having NO_COLOR=1 in your environment. Then you don't have to explicitly pass --color=false to esbuild on the CLI. See also: https://no-color.org/

evanw avatar Jul 17 '25 01:07 evanw

These do come up together often (both for compatibility & accessibility/preference), but they are different requests. Setting this will not disable emoji according to my skimming of the code, just turns off the 16 terminal color escapes.

toastal avatar Jul 17 '25 04:07 toastal