- Notifications
You must be signed in to change notification settings - Fork38
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
Stars
Watchers
Forks
Packages0
No packages published