Last active
January 13, 2018 00:27
-
-
Save scwood/7215c3a1d30c737e4cc74850c7b3512c to your computer and use it in GitHub Desktop.
Clear console in JavaScript
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
| function clearConsole() { | |
| return process.stdout.write('\033c'); | |
| } | |
| // run this at before app.listen() to clear console, great with tools like nodemon | |
| // Edit: or you could use the builtin console.clear() lol |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment