{"size": 352, "ext": "js", "max_stars_repo_path": "Store/myNpm/st_doc1/nodejs.org_DOCS.v.1/Cluster/Way/First/worker.js", "max_stars_repo_name": "legioner9/Node_Way_source_2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Store/myNpm/st_doc1/nodejs.org_DOCS.v.1/Cluster/Way/First/worker.js", "max_issues_repo_name": "legioner9/Node_Way_source_2", "max_issues_repo_issues_event_min_datetime": "2021-02-24T21:17:25.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-03T07:38:41.000Z", "max_forks_repo_path": "Store/myNpm/st_doc1/nodejs.org_DOCS.v.1/Cluster/Way/First/worker.js", "max_forks_repo_name": "legioner9/Node_Way_source_2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 19.5555555556, "max_line_length": 65, "alphanum_fraction": 0.6647727273}
'use strict';

const cluster = require('cluster');

console.log('Hello from worker', process.pid, cluster.worker.id);

const caltulations = x => x * 2;

process.on('message', message => {

    console.log('Message to worker ', process.pid);
    console.log(message);

    const result = message.task.map(caltulations);
    process.send({result});

});
