first to connect to get to the prototype via a - throw-away - instance?
Who said it was throw-away?
var eeprom = require("DS2xxx").connect(...); eeprom.__proto__.constructor.prototype.read123 = function() { return ....; } eeprom.read123();
I think that's fine, and it has the nice side-effect that we don't have to re-write any of the existing modules.
@Gordon started
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.
Who said it was throw-away?
I think that's fine, and it has the nice side-effect that we don't have to re-write any of the existing modules.