node-weak-inherit
Weakly inherit a class/function's prototype on any object
This point of this module is to allow the extension of a class and its method on top of objects that are not necessarily classes themselves.
This is useful for API builders in particular which need to "extend" a class on to a function that is still callable itself.
Example
var weakInherit = ;var EventEmitter = EventEmitter; var { console;}; // anything we pass to `generator` will extend EventEmittervar generator = ; var obj = ; ; //-> Hello, Qix fn; fn; //-> Hi!
License
Licensed under the MIT License. You can find a copy of it in LICENSE.