Created
March 18, 2016 12:21
-
-
Save petrkohut/0e6a9f3688d6ce2a1f9c to your computer and use it in GitHub Desktop.
coloring console.log in Node.js
This file contains 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
// colored console.log | |
console.log('\x1b[36m', 'sometext' ,'\x1b[0m'); | |
// other colors: https://telepathy.freedesktop.org/doc/telepathy-glib/telepathy-glib-debug-ansi.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment