mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-30 18:24:27 +01:00
22 lines
357 B
JavaScript
22 lines
357 B
JavaScript
"use strict";
|
|
|
|
const { platform } = require("os");
|
|
|
|
const getPlatform = () => {
|
|
switch (platform()) {
|
|
case "aix":
|
|
case "freebsd":
|
|
case "linux":
|
|
case "openbsd":
|
|
case "android":
|
|
return "linux";
|
|
case "darwin":
|
|
case "sunos":
|
|
return "mac";
|
|
case "win32":
|
|
return "win";
|
|
}
|
|
};
|
|
|
|
module.exports = { getPlatform };
|