We can also cache Modules in Eprom, and load on demand:
var fs = new(require("FlashStoreWrite"))(0x7c000);
// Save module source in EEPROM
fs.item('clock').wget('http://www.espruino.com/modules/clock.min.js');
var fs = new(require("FlashStore"))(0x7c000);
// Retrieve module source, add to module cache and then use..
require( fs.item('clock').module() );
var Clock = require("clock").Clock;
var clk=new Clock(2014,4,15,23,45,0,0);
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.
We can also cache Modules in Eprom, and load on demand:
This means you can use require on the left hand side of the IDE on a pre-cached module, and then use that module.