In-browser console to watch changeable values like counters or FPS
npm install yy-counterconsole-counter.js quickly and easily creates an in-browser console and attaches it to a corner of the screen. It also stacks mulitple counters
const Counter = require('yy-counter')
const counter = new Counter({side: 'top-left'})
let n = 0
setInterval(() => counter.log(n++), 250)
npm i yy-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])