what about this?
Modules.addCached("Say",function say(){ function hello(name) { console.log('Hello',name); } exports.hello = hello; }); const Say = require('Say'); Say.hello('allObjects');
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
what about this?