a6d33f08ac
* config: enhance tsconfig.json (Set sourceMap and removeComments to true) * gha: Add pull_request trigger, close #43 * config: Add waring emoji
18 lines
No EOL
438 B
JavaScript
18 lines
No EOL
438 B
JavaScript
"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;
|
|
//# sourceMappingURL=get-os.js.map
|