mirror of
https://gitee.com/onvia/ccc-tnt-psd2ui
synced 2024-12-28 04:27:42 +00:00
17 lines
315 B
JavaScript
17 lines
315 B
JavaScript
'use strict';
|
|
|
|
const isLinux = () => process.platform === 'linux';
|
|
|
|
let report = null;
|
|
const getReport = () => {
|
|
if (!report) {
|
|
/* istanbul ignore next */
|
|
report = isLinux() && process.report
|
|
? process.report.getReport()
|
|
: {};
|
|
}
|
|
return report;
|
|
};
|
|
|
|
module.exports = { isLinux, getReport };
|