This package makes your console logs shine! It also adds the time of log too.
NPM installation:
$ npm install coloured-logs
Package usage:
const cons = require("coloured-logs");
cons.success("Message sent!");
cons.info("Request received!");
cons.error("Could not process file");
cons.response("Request returned status 200");
cons.server("Server listening on port 3000");
You can optionally turn on/off the timestamp in every log. Timestamp is on by default.
cons.setConfig({
timestamp: false
});
It will then apply for all logs executed after the setConfig()
function.
This package was made by SnakeByte, a proud user of Replit.
This package is licensed under the MIT License.
If you encounter any issues, have questions, or need support, feel free to reach out to the package maintainer or open an issue on the project repository.