2019-09-21 01:41:21 +00: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 01:58:19 +00:00
|
|
|
//# sourceMappingURL=get-os.js.map
|