In-browser console to watch changeable values like counters or FPS
npm install console-counterconsole-counter.js quickly and easily creates an in-browser console and attaches it to a corner of the screen.
const ConsoleCounter = require('console-counter');
const counter = new ConsoleCounter()
let n = 0
setInterval(() => counter.log(n++), 250)
npm i console-counter
/**
* replaces the innerHTML of the console
* @param {string|number} text-1
* @param {string|number} [text-2]
* @param {string|number} ... [text-n]
*/
log(text-1, [text-2], ... [text-n])
/**
* appends to the innerHTML of the console
* @param {string|number} text-1
* @param {string|number} [text-2]
* @param {string|number} ... [text-n]
*/
append(text-1, [text-2], ... [text-n])