Skip to content

refactor: replace strip-ansi with native stripVTControlCharacters#249

Merged
sindresorhus merged 1 commit intosindresorhus:mainfrom
bjnewman:refactor/use-native-strip-vt-control-characters
Jan 21, 2026
Merged

refactor: replace strip-ansi with native stripVTControlCharacters#249
sindresorhus merged 1 commit intosindresorhus:mainfrom
bjnewman:refactor/use-native-strip-vt-control-characters

Conversation

@bjnewman
Copy link
Copy Markdown
Contributor

Summary

  • Replace strip-ansi dependency with Node.js built-in util.stripVTControlCharacters()
  • Remove strip-ansi from dependencies

Rationale

The stripVTControlCharacters function has been available in Node.js since v16.11, and ora already requires Node.js >= 20. Using the native API eliminates an external dependency and its transitive dependencies.

This is the same change pattern as string-length#21.

@sindresorhus sindresorhus merged commit 68d50e5 into sindresorhus:main Jan 21, 2026
2 checks passed
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.

2 participants