Skip to content

Instantly share code, notes, and snippets.

@iTonyYo
Forked from 19h/reset.js
Created April 2, 2019 11:30
Show Gist options
  • Save iTonyYo/1c1fc4e16107a34d9707eda66dbe9c93 to your computer and use it in GitHub Desktop.
Save iTonyYo/1c1fc4e16107a34d9707eda66dbe9c93 to your computer and use it in GitHub Desktop.
Node.js — Clear Terminal / Console. Reset to initial state.
console.reset = function () {
return process.stdout.write('\033c');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment