Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork39
Strip ANSI escape codes from a string
License
NotificationsYou must be signed in to change notification settings
chalk/strip-ansi
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
StripANSI escape codes from a string
Note
Node.js has this built-in now withstripVTControlCharacters
. The benefit of this package is consistent behavior across Node.js versions and faster improvements. The Node.js version is actually based on this package.
npm install strip-ansi
importstripAnsifrom'strip-ansi';stripAnsi('\u001B[4mUnicorn\u001B[0m');//=> 'Unicorn'stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');//=> 'Click'
- strip-ansi-cli - CLI for this module
- strip-ansi-stream - Streaming version of this module
- has-ansi - Check if a string has ANSI escape codes
- ansi-regex - Regular expression for matching ANSI escape codes
- chalk - Terminal string styling done right
About
Strip ANSI escape codes from a string
Resources
License
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.