html_logs Write log on html and on console.log at once npm install html_logs Usage import * as html_logs from "html_logs"; html_logs.log("Debug is on",document.currentScript.src.split("/").pop());