objbind takes an object and returns an object that inherits from it with all the enumerable functions bound to the first object.
confused? here's an example:
var winston = require('winston') , objbind = require('objbind') , myWinston = objbind(winston, 'nathan says')myWinston.info('hi')console.log(myWinston.loggers === winston.loggers)
info: nathan says hi
Selectively mirror the npm registry inside your firewall. Filter packages based on security, licensing, code quality and more. Build awesome stuff faster. Try npm Enterprise for free…
how? learn more