You can add a SD card w/ adapter and store the module there. The SD card has to be mounted when the code has to run. In order to prevent the loading on upload of your program you pass the module name in a string variable. When doing so, the uploader does not find the pattern with regular expression:
var mn, m;
// ...some code, including the mounting of the SD card
mn="moduleName"; m=require(mn);
// ...some more code
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.
You can add a SD card w/ adapter and store the module there. The SD card has to be mounted when the code has to run. In order to prevent the loading on upload of your program you pass the module name in a string variable. When doing so, the uploader does not find the pattern with regular expression:
If you want to do that, you can inline the module or stick into the module cache in the code you upload. See Module Development and Module creation at runtime.
And I'm sure there are more options...