• OK, I wrote it not so clear indeed ...

    This is current/common status in npm

    // the module
    module.exports = function () {
      console.log('I am the module');
    // the consumer
    var module = require('my-module');
    module(); // I am the module

    With current Espruino there's no way to directly export the object or the function, you can only attach properties to the exports variable.

    Will this be improved to reflect common npm modules pattern or the module object won't ever be exposed?