strip-ansi就是将转义后的符号复原
Install
1 | npm install strip-ansi |
Usage
1 | const stripAnsi = require('strip-ansi'); |
Related
- strip-ansi-cli - CLI for 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