A multi-platform module/library is a piece of code that works shameless in browser, server -usually nodeJS- and embedded systems.
Haven’t you noticed that JQuery works when you import the library from “script” tags in a website and when you “require” it in nodeJS? this is because JQuery controls the global scope and, depending on it, initialises the suit in different manners.
JQuery is the paradigm of multi-platform libraries, it runs in modern and old browsers, from phones to smartwatches, in Webkit, blink or Node, but, how do it do it?
Continue reading “Multi-Platform JavaScript Modules”