Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing strip-ansi with stripVTControlCharacters() from node:util #61

Closed
wants to merge 2 commits into from

Conversation

RobinTail
Copy link

Reducing dependencies, similar to eslint/eslint#18982 .

The method exists since v16.11
https://nodejs.org/api/util.html#utilstripvtcontrolcharactersstr

string-width min Node version is 18.

@RobinTail RobinTail marked this pull request as ready for review October 3, 2024 23:29
@RobinTail
Copy link
Author

@sindresorhus , please review

@sindresorhus
Copy link
Owner

This would be a regression until nodejs/node#54865 is available in a Node.js release we can target, so at the earliest Node.js 22.

@RobinTail
Copy link
Author

Got it, thank you

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