@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
24 lines • 609 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPlatform = getPlatform;
let platformCache = null;
function getPlatform() {
if (platformCache !== null) {
return platformCache;
}
const platform = process.platform;
if (platform === 'darwin') {
platformCache = 'mac-os';
}
else if (platform === 'linux') {
platformCache = 'linux';
}
else if (platform === 'win32') {
platformCache = 'windows';
}
else {
platformCache = 'unknown';
}
return platformCache;
}
//# sourceMappingURL=os.js.map