Last active
November 18, 2020 06:59
-
-
Save Alex4386/6f7e56c2980e5cc815308f6e190351f9 to your computer and use it in GitHub Desktop.
Unescape ANSI Pushing (https://gist.github.com/Dalgona/92dae733892905f0370b2f83bb242a9a) by Dalgona
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const escaped = fs.readFileSync('pushing.escaped.ansi', { encoding: 'utf-8' }); | |
| const unescaped = escaped.replace(/\\x1b/g, '\x1b'); | |
| fs.writeFileSync('pushing.ansi', unescaped); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment