chalk/strip-ansi

[Feature Request] Add ability to only strip some ANSI codes #45

crutchcorn posted onGitHub

I'm working on a CLI E2E testing library that I would love to add the ability to "pretty print" output all of stdout to the console when a test implementation requests.

This would include keeping ANSI codes when present, but removing the ones that would clear the screen (to help with the debug process)

Adding in the ability to pass the codes to strip would help a lot in this regard. Happy to submit a PR


OK actually I'm realizing that this logic is drastically out-of-scope in terms of required code change for this (or the ansi-regex) package and as such am closing the issue. Apologies

posted by crutchcorn over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests