Skip to content

Instantly share code, notes, and snippets.

@khalidx
Last active June 24, 2019 04:26
Show Gist options
  • Save khalidx/a13f951d41a328839188a1e1cc0570ea to your computer and use it in GitHub Desktop.
Save khalidx/a13f951d41a328839188a1e1cc0570ea to your computer and use it in GitHub Desktop.
Clears the console (terminal), using Node.js
process.stdout.write('\x1b[2J');
process.stdout.write('\x1b[0f');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment