consola
console.image
consola | console.image | |
---|---|---|
2 | 2 | |
5,624 | 1,766 | |
1.6% | - | |
7.5 | 0.0 | |
9 days ago | over 2 years ago | |
TypeScript | JavaScript | |
GNU General Public License v3.0 or later | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
consola
-
Elegant Console Logs With Consola
Console logs are not always well structured and eye-pleasing. Unpleasant and messy console takes away from the bliss of a developer. I recently came across a package named consola which does exactly this — making consoles meaningful and elegant.
-
Use Console.log() Like a Pro
consola library is a great alternative to JavaScript console. Provides some really neat formatting and more power features.
https://github.com/unjs/consola
console.image
-
Use Console.log() Like a Pro
Then you should see the HN logo display in your console. Credit for the image trick goes to https://github.com/adriancooney/console.image
I actually use this in the real world for working with canvases. Appending to the page is not the same since you lose the context from being interleaved with your other log messages.
-
Use console.log() like a pro
On the other hand, you can abuse the %c format substitution to display images on your console: https://github.com/adriancooney/console.image
What are some alternatives?
winston - A logger for just about everything.
TermKit - Experimental Terminal platform built on WebKit + node.js. Currently only for Mac and Windows, though the prototype works 90% in any WebKit browser.
pino - 🌲 super fast, all natural json logger
console-log-level - The most simple logger imaginable
log4js-node - A port of log4js to node.js
signale - Highly configurable logging utility
Logtown - 🦄 Simple Logging Facade for JavaScript
oddlog
tracer for node.js - A powerful and customizable logging library for node.js
Bunyan - a simple and fast JSON logging module for node.js services
log-process-errors - Show some ❤️ to Node.js process errors