2019-09-21 03:41:21 +02:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
function getOS(platform) {
|
|
|
|
if (platform === 'linux') {
|
|
|
|
return 'Linux';
|
|
|
|
}
|
|
|
|
else if (platform === 'darwin') {
|
|
|
|
return 'macOS';
|
|
|
|
}
|
|
|
|
else if (platform === 'win32') {
|
|
|
|
return 'Windows';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
throw new Error(`${platform} is not supported`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.default = getOS;
|
2019-09-23 03:58:19 +02:00
|
|
|
//# sourceMappingURL=get-os.js.map
|