Skip to main content
This release is 13 versions behind 1.1.4 — the latest version of @std/path. Jump to latest

@std/path@1.0.1
Built and signed on GitHub Actions

Utilities for working with file system paths

This package works with Cloudflare Workers, Deno, Browsers
This package works with Cloudflare Workers
This package works with Deno
This package works with Browsers
JSR Score
94%
Published
2 years ago (1.0.1)
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. // This module is browser compatible. // Keep this up-to-date with Deno.build.os /** * Operating system type, equivalent to the type of * {@linkcode https://deno.land/api?s=Deno.build | Deno.build.os}. */ type OSType = | "darwin" | "linux" | "windows" | "freebsd" | "netbsd" | "aix" | "solaris" | "illumos" | "android"; function getOsType(): OSType { // deno-lint-ignore no-explicit-any return (globalThis as any).Deno?.build.os || // deno-lint-ignore no-explicit-any ((globalThis as any).navigator?.userAgent.includes("Win") ? "windows" : "linux"); } export const isWindows: boolean = getOsType() === "windows";