Skip to content

Replace chalk with picocolors #1340

Open
@Fuzzyma

Description

@Fuzzyma

Describe the feature you'd like:

I want to propose to replace the chalk dependency with the smaller and faster picocolors package.
As part of the e18e initiative (ecosystem cleanup), we try to reduce the burden of old or big libs and modernize the ecosystem.
Considering that chalk is used for exactly one style in the console output in this lib, it might be worthwhile to think about geeting rid of it at all :D.
chalk alone accounted for a whopping 907.93 GB of traffic last month whenever it got installed as part of dom-testing-library.
The tar size of 13.40Kb doesn't seem much (dom-testing-librarys tar is 434.14KB) but every bit counts :).

Suggested implementation:

Either use picocolor or inline the one styling you have.
In your case it would be a full drop-in repacement.

I would be willing to create the PR for you

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions