UNPKG

@samislam/log

Version:

log is a simple utility that helps in logging colorful outputs to the console. This module depends on the popular, colors module.

12 lines (9 loc) 292 B
const log = require(".."); const colors = require("colors/safe"); log.set("test", "rainbow", "Test: "); log.test(log.label, "This is just a test!"); // let themes = []; for ([key, value] of Object.entries(log)) { // themes.push(key); log[key](log.label, "This is a test message!"); }