code: function Context(base, args) {
    base = base || process.cwd();
    args = args || {};
  
    EventEmitter.call(this);
  
    this.base_dir = base;
    this.log = logger(args);
  
    this.extend = {
      console: new ConsoleExtend()
    };
  }
docs: a stub Hexo object see `hexojs/hexo/lib/hexo/index.js`