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

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

Works with
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 Score94%
Downloads118,397/wk
Published2 years ago (0.225.1)

Utilities for working with file system paths

// 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 export type OSType = | "darwin" | "linux" | "windows" | "freebsd" | "netbsd" | "aix" | "solaris" | "illumos"; export const osType: OSType = (() => { // deno-lint-ignore no-explicit-any const { Deno } = globalThis as any; if (typeof Deno?.build?.os === "string") { return Deno.build.os; } // deno-lint-ignore no-explicit-any const { navigator } = globalThis as any; if (navigator?.appVersion?.includes?.("Win")) { return "windows"; } return "linux"; })(); export const isWindows = osType === "windows";