@azure/static-web-apps-cli
Version:
Azure Static Web Apps CLI
25 lines • 569 B
JavaScript
import os from "node:os";
export function isWSL() {
return process.env.WSL_DISTRO_NAME !== undefined;
}
/**
* Returns the os of the platform
* @returns current os
*/
export function getPlatform() {
switch (os.platform()) {
case "win32":
return "win-x64";
case "darwin":
return "osx-x64";
case "aix":
case "freebsd":
case "openbsd":
case "sunos":
case "linux":
return "linux-x64";
default:
return null;
}
}
//# sourceMappingURL=platform.js.map