deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

suggestion: move `std/fmt/colors` to `std/cli/styles`

Open iuioiua opened this issue 1 year ago • 2 comments

I suggest moving/renaming std/fmt/colors to std/cli/styles for the following reasons:

  1. The module contains functionality for more than just colors. I.e. italic() and bold(). Hence, the rename to styles.
  2. The module's functionality is only concerned with console output. Hence, the move to std/cli. This new name would make far more sense than it currently does and be much more accurate.

This is a continuation of the conversation happening in #4326.

iuioiua avatar May 06 '24 05:05 iuioiua

What about std/cli/ansi instead?

andrewthauer avatar May 06 '24 11:05 andrewthauer

What about std/cli/ansi instead?

We think std/cli/styles would be better. See https://github.com/denoland/deno_std/issues/4326#issuecomment-2092015391

iuioiua avatar May 06 '24 12:05 iuioiua