and you can just load the file as a string with require("Storage").read("filename") - the string will be kept in flash and will be loaded on demand. If it's too big to send in one go you can use E.pipe to pipe it to the HTTP response
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.
and you can just load the file as a string with
require("Storage").read("filename")
- the string will be kept in flash and will be loaded on demand. If it's too big to send in one go you can useE.pipe
to pipe it to the HTTP response