You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • You might be able to do:

    // my module
    exports.foo = function() {
      var s = { bar : function() { }, .... }
      delete exports.foo;
      return s;
    };
    

    I haven't tried it - but that really is quite nasty!

About

Avatar for Gordon @Gordon started