Skip to content

refactor: replace strip-ansi with built-in util.stripVTControlCharacters#60

Closed
mahmoodhamdi wants to merge 1 commit into
chalk:mainfrom
mahmoodhamdi:fix/replace-strip-ansi
Closed

refactor: replace strip-ansi with built-in util.stripVTControlCharacters#60
mahmoodhamdi wants to merge 1 commit into
chalk:mainfrom
mahmoodhamdi:fix/replace-strip-ansi

Conversation

@mahmoodhamdi

Copy link
Copy Markdown

Summary

  • Replaced the strip-ansi dependency with Node.js built-in util.stripVTControlCharacters
  • Removed strip-ansi from package.json dependencies
  • util.stripVTControlCharacters is available since Node.js 16.11.0, well within the >=20 engine requirement

This reduces the dependency tree by removing one package.

All 54 tests pass.

Closes #55

…acters

Since the package requires Node.js >=20, the built-in
util.stripVTControlCharacters (available since Node.js 16.11.0) can be
used instead of the strip-ansi dependency.

This removes one dependency from the package, reducing install size and
dependency tree complexity.

Closes chalk#55

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sindresorhus

Copy link
Copy Markdown
Member

#55 (comment)

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.

Replace strip-ansi dependency with util.stripVTControlCharacters

2 participants