Skip to content

Instantly share code, notes, and snippets.

@Alex4386
Last active November 18, 2020 06:59
Show Gist options
  • Save Alex4386/6f7e56c2980e5cc815308f6e190351f9 to your computer and use it in GitHub Desktop.
Save Alex4386/6f7e56c2980e5cc815308f6e190351f9 to your computer and use it in GitHub Desktop.
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