Skip to content

🚀 Feature: Replace ansi-colors with a faster, smaller alternative #5291

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Feature Request Checklist

Overview

Coming over from #5274 ansi-colors has a couple issues:

  • It was last updated 3 years ago
  • Is >2.5x the unpacked package size (26.1 kB) than the two smallest alternatives: ansis (6.8 kB) and picocolors (6.4 kB)

Suggested Solution

I personally propose switching to picocolors. It's the smallest of the popular alternatives that I know of. It's also quite widely used at ~60m+ weekly downloads, showing it should be stable enough for Mocha.

Alternatives

ansis is great too. It's only marginally larger than picocolors, with a small enough difference that they're effectively the same. And at ~1m weekly downloads it's pretty popular in its own right.

Additional Info

💖

Co-authored-by: @webdiscus

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions