UNPKG

mp3tag

Version:

A library for reading/writing mp3 tag data

30 lines (29 loc) 687 B
"use strict"; //A simple console logging module module Object.defineProperty(exports, "__esModule", { value: true }); //Default settings, change via output.config().debug = true const config = { debug: false, info: true, error: true }; var output = function (txt) { console.log(txt); }; output.config = function () { return config; }; output.error = function (msg) { if (config.error) { console.error("[ERROR] " + msg); } }; output.info = function (msg) { if (config.info) { console.log("[INFO] " + msg); } }; output.debug = function (msg) { if (config.debug) { console.log("[DEBUG] " + msg); } }; module.exports = output;