index.js
function(module, debug) {
  this.debug = debug || false;
  this.jsonrpc = "2.0";
  // check & load the methods in module
  this.methods = module;
  if(handy.getType(module)=='string') {
    this.methods = require(module);
  }
  if(this.debug) {
    logger.debug('Loaded with methods:'+_.functions(this.methods));
  }
}
function(module, debug) {
  this.debug = debug || false;
  this.jsonrpc = "2.0";
  // check & load the methods in module
  this.methods = module;
  if(handy.getType(module)=='string') {
    this.methods = require(module);
  }
  if(this.debug) {
    logger.debug('Loaded with methods:'+_.functions(this.methods));
  }
}
JSON RPC library entry point