Skip to content

Replace chalk with picocolors and strip-ansi with node:util#5

Merged
Kocal merged 1 commit intomainfrom
migrate-to-lighter-dependencies
Mar 10, 2026
Merged

Replace chalk with picocolors and strip-ansi with node:util#5
Kocal merged 1 commit intomainfrom
migrate-to-lighter-dependencies

Conversation

@Kocal
Copy link
Owner

@Kocal Kocal commented Mar 10, 2026

Summary

Migrate to lighter and more performant alternatives following e18e.dev recommendations:

  • Replace chalk with picocolors (smaller, faster, no dependencies)
  • Replace strip-ansi with native node:util.stripVTControlCharacters (available since Node 16.11)

Migrate to lighter and more performant alternatives following e18e.dev recommendations:

- Replace `chalk` with `picocolors` (smaller, faster, no dependencies)
- Replace `strip-ansi` with native `node:util.stripVTControlCharacters`
- Keep `string-width` as `fast-string-width` is ESM-only (incompatible with CJS)

This reduces the dependency tree and improves install/startup performance.
@Kocal Kocal merged commit 7f8ed9f into main Mar 10, 2026
5 checks passed
@Kocal Kocal deleted the migrate-to-lighter-dependencies branch March 10, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant