INNER CODE UNIT · JavaScript

Server

macacajs/app-inspector · lib/server.js:41

function Server(options) {
  this.options = _.merge(defaultOpt, options || {});
  this.init();
}

Server.prototype.init = function() {
  this.options.ip = _.ipv4;
  this.options.host = os.hostname();
  this.options.loaded_time = _.moment(Date.now()).format('YYYY-MM-DD HH:mm:ss');
};

Server.prototype.start = function() {
  return startServer(this.options);
};

module.exports = Server;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…