1.0.0 • Published 2 years ago
@jowe81/lg v1.0.0
Simple Console Logger with Prefix Support
Install it:
npm install @jowe/lg
Use it:
const { lg, prefix } = require("@jowe81/lg");
lg("Hello"); //Hello
prefix.set("Server");
lg("Listening..."); //** Server: ** Listening...
lg("Client connected"); //** Server: ** Client connected
About:
I found myself re-writing log helpers all the time while taking a web-development course. Following the DRY principle, I decided to modularize the functionality.
1.0.0
2 years ago