@worker-tools/deno-kv-storage
Version:
An implementation of the StorageArea (1,2,3) interface for Deno with an extensible system for supporting various database backends.
19 lines • 955 B
JavaScript
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
import * as dntShim from "../../../../_dnt.shims.js";
export const osType = (() => {
var _a, _b, _c, _d;
// deno-lint-ignore no-explicit-any
const { Deno } = dntShim.dntGlobalThis;
if (typeof ((_a = Deno === null || Deno === void 0 ? void 0 : Deno.build) === null || _a === void 0 ? void 0 : _a.os) === "string") {
return Deno.build.os;
}
// deno-lint-ignore no-explicit-any
const { navigator } = dntShim.dntGlobalThis;
if ((_d = (_c = (_b = navigator === null || navigator === void 0 ? void 0 : navigator.appVersion) === null || _b === void 0 ? void 0 : _b.includes) === null || _c === void 0 ? void 0 : _c.call(_b, "Win")) !== null && _d !== void 0 ? _d : false) {
return "windows";
}
return "linux";
})();
export const isWindows = osType === "windows";
//# sourceMappingURL=os.js.map