process.js 315 B

12345678910111213141516
  1. 'use strict';
  2. const isLinux = () => process.platform === 'linux';
  3. let report = null;
  4. const getReport = () => {
  5. if (!report) {
  6. /* istanbul ignore next */
  7. report = isLinux() && process.report
  8. ? process.report.getReport()
  9. : {};
  10. }
  11. return report;
  12. };
  13. module.exports = { isLinux, getReport };