lib/worker.js
function Worker() {
    this.config = JSON.parse(process.env.WORKER_CONFIG);
    if (typeof this.config !== 'object') {
      throw new Error('WORKER_CONFIG is missing');
    }
    process.title = process.variousCluster = this.config.title;
  }
function Worker() {
    this.config = JSON.parse(process.env.WORKER_CONFIG);
    if (typeof this.config !== 'object') {
      throw new Error('WORKER_CONFIG is missing');
    }
    process.title = process.variousCluster = this.config.title;
  }
function Worker ( ) { this . config = JSON . parse ( process . env . WORKER_CONFIG ) ; if ( typeof this . config !== 'object' ) { throw new Error ( 'WORKER_CONFIG is missing' ) ; } process . title = process . variousCluster = this . config . title ; }
create a new Worker instance

@memberOf global

@constructor
@this {Worker}
create a new Worker instance