4 ms·
Out of curiosity, could this work in node.js to avoid the server VS client thing?
Out of curiosity, could this work in node.js to avoid the server VS client thing?
Sure, node.js is a server backend just like any other in this use case.
I think this script depends on the DOM, so you'd have to do jsdom or some other shenanagains to use it directly. However, the general idea should work just fine in node.js.