mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 01:09:31 +08:00
16 lines
315 B
Text
16 lines
315 B
Text
'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 };
|