Great! So are you actually running out of space, or is this 'just in case'?
By the way, you can also do eval(require('fs').readFile("...")) which might be slightly easier if you're loading specific bits of code.
Espruino is designed so that it can 'page' variables and code out to flash - potentially giving it massively more available memory. It could be a fun project for someone :)
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.
Great! So are you actually running out of space, or is this 'just in case'?
By the way, you can also do
eval(require('fs').readFile("..."))
which might be slightly easier if you're loading specific bits of code.Espruino is designed so that it can 'page' variables and code out to flash - potentially giving it massively more available memory. It could be a fun project for someone :)