Just use the Web IDE normally and set save on send in the options, which wraps everything in setBootCode for you automatically. That'd be the sensible thing to do, but maybe you have other reasons :)
Use the espruino NPM package (https://www.npmjs.com/package/espruino) on the command-line. You can make this write code to Espruino, or can get it to write the code it would have written to Espruino to a file, which might be what you want?
Manually download modules from http://www.espruino.com/modules/ and try and put them in manually with Modules.addCached (inside E.setBootcode)), but that just seems a bit crazy to be honest :)
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.
Well, you can:
save on send
in the options, which wraps everything in setBootCode for you automatically. That'd be the sensible thing to do, but maybe you have other reasons :)espruino
NPM package (https://www.npmjs.com/package/espruino) on the command-line. You can make this write code to Espruino, or can get it to write the code it would have written to Espruino to a file, which might be what you want?Modules.addCached
(insideE.setBootcode
)), but that just seems a bit crazy to be honest :)