{"size": 454, "ext": "js", "max_stars_repo_path": "tests/unit/tests/core/utils.js", "max_stars_repo_name": "reeteshranjan/cross-browser-tests-runner", "max_stars_repo_stars_event_min_datetime": "2017-06-21T23:53:32.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-22T02:40:28.000Z", "max_issues_repo_path": "tests/unit/tests/core/utils.js", "max_issues_repo_name": "reeteshranjan/cross-browser-tests-runner", "max_issues_repo_issues_event_min_datetime": "2017-06-19T12:16:45.000Z", "max_issues_repo_issues_event_max_datetime": "2018-02-14T20:03:04.000Z", "max_forks_repo_path": "tests/unit/tests/core/utils.js", "max_forks_repo_name": "reeteshranjan/cross-browser-tests-runner", "max_forks_repo_forks_event_min_datetime": "2020-08-05T07:32:12.000Z", "max_forks_repo_forks_event_max_datetime": "2020-08-05T07:32:12.000Z"}
{"max_stars_count": 5, "max_issues_count": 55, "max_forks_count": 1, "avg_line_length": 18.16, "max_line_length": 50, "alphanum_fraction": 0.5837004405}
'use strict';

var
  ps = require('ps-node'),
  Log = require('./../../../../lib/core/log').Log,
  utils = require('./../../../utils')

let log = new Log('UnitTests')

function procsByCmd(cmd) {
  return new Promise(resolve => {
    ps.lookup({
      command: cmd
    },
    (err, list) => {
      if(err) throw new Error(err)
      resolve(list)
    })
  })
}

exports.procsByCmd = procsByCmd
exports.buildDetails = utils.buildDetails
exports.log = log
