win-sso
Version:
NTLM single-sign-on for Node.js. Only Windows OS supported.
16 lines (15 loc) • 576 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.osSupported = osSupported;
const os_1 = __importDefault(require("os"));
/**
* Returns true if the current platform is supported by the win-sso module. Only Windows OSs are supported.
* If false, all other methods in the module will throw.
* @returns Is the os supported
*/
function osSupported() {
return os_1.default.platform() === "win32";
}