You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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.

About

Avatar for Gordon @Gordon started