Skip to content

Instantly share code, notes, and snippets.

@huruji
Forked from 19h/reset.js
Created February 23, 2019 07:57
Show Gist options
  • Save huruji/7765cfed9a1ab8b16c73add18ef2ec4b to your computer and use it in GitHub Desktop.
Save huruji/7765cfed9a1ab8b16c73add18ef2ec4b 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