gg()
is a logger/debugger with several advantages:
- Annotated with automatic namespace based on source file and calling function.
- Each namespace gets a unique color for easier visual parsing.
- Simple syntax with wildcards to filter/hide debug output at runtime.
- Millisecond diff (timestamps) for each namespace.
- Can be inserted into the middle of expressions (returns the value of the first argument).
- Can output a link that opens the source file in your editor (like VS Code).
- Simple to disable (turn all loggs into NOP's for production).
- Diagnostics/hints in dev console & terminal to help install and configure correctly.
- Faster to type.
npm add @leftium/gg
Coming soon...
A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers.
Quick and dirty debugging output for tired programmers.
Never use print() to debug again