PHP 7.4.33
Preview: process.js Size: 569 B
/var/www/idmc.bitkit.dk/httpdocs/node_modules/detect-libc/lib/process.js
// Copyright 2017 Lovell Fuller and others.
// SPDX-License-Identifier: Apache-2.0

'use strict';

const isLinux = () => process.platform === 'linux';

let report = null;
const getReport = () => {
  if (!report) {
    /* istanbul ignore next */
    if (isLinux() && process.report) {
      const orig = process.report.excludeNetwork;
      process.report.excludeNetwork = true;
      report = process.report.getReport();
      process.report.excludeNetwork = orig;
    } else {
      report = {};
    }
  }
  return report;
};

module.exports = { isLinux, getReport };

Directory Contents

Dirs: 0 × Files: 3
Name Size Perms Modified Actions
6.08 KB lrw-rw-r-- 2024-09-23 09:37:22
Edit Download
717 B lrw-rw-r-- 2024-09-23 09:37:22
Edit Download
569 B lrw-rw-r-- 2024-09-23 09:37:22
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).