Skip to content

[FEATURE] Support browser environment #30

Description

@KrystilizeNevaDies

Feature request

Support ansis in the browser.

What is motivation or use case for adding/changing the behavior?

I'd like the be able to use ansis as a cross platform solution for terminal coloring.

Describe the solution you'd like

Do a best-effort detection of color support in the browser's console, and enable ansi codes if supported.
This feature request does not include inline html rendering. This would require a separate feature request given this feature is implemented.

Describe alternatives you've considered

The only current viable alternative is to use another library such as chalk.

Appreciation for the useful project

  • After the feature is implemented, do not forget to give a star ⭐

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions