forward-props
Forward a list of properties to providers for an object on the fly (late-binding). The main usage is to have an object that provides an interface to its internal object and lets them handle the details of each of the methods. This is really useful when you want an object to behave like very disparate objects, yet don't want to mix those into one object with mixins or inheritance.
Install
$ npm install forward-props
Usage
var forward = ; // calculator interfacevar calc = Object; // private addition modulevar _addition = { return a + b } { var args = __slice; return args; }; // private multiplication modulevar _multiplication = { return a * b } { var args = __slice; return args; }; // provide calc with addition properties; // a little multiplication wouldn't hurt; calc; // 15calcproduct12345; // 120