// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright the Browserify authors. MIT License.
// Ported mostly from https://github.com/browserify/path-browserify/
// This module is browser compatible.

/**
 * Utilities for working with OS-specific file paths.
 *
 * Codes in the examples uses POSIX path but it automatically use Windows path
 * on Windows. Use methods under `posix` or `win32` object instead to handle non
 * platform specific path like:
 * ```ts
 * import { posix, win32 } from "@std/path";
 * const p1 = posix.fromFileUrl("file:///home/foo");
 * const p2 = win32.fromFileUrl("file:///home/foo");
 * console.log(p1); // "/home/foo"
 * console.log(p2); // "\\home\\foo"
 * ```
 *
 * This module is browser compatible.
 *
 * @module
 */
export * from "./basename.ts";
export * from "./constants.ts";
export * from "./dirname.ts";
export * from "./extname.ts";
export * from "./format.ts";
export * from "./from_file_url.ts";
export * from "./is_absolute.ts";
export * from "./join.ts";
export * from "./normalize.ts";
export * from "./parse.ts";
export * from "./relative.ts";
export * from "./resolve.ts";
export * from "./to_file_url.ts";
export * from "./to_namespaced_path.ts";
export * from "./common.ts";
export * from "../_interface.ts";
export * from "./glob_to_regexp.ts";
export * from "./is_glob.ts";
export * from "./join_globs.ts";
export * from "./normalize_glob.ts";

// denoCacheMetadata={"headers":{"date":"Tue, 28 Jul 2026 12:31:15 GMT","content-type":"text/typescript","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","x-content-type-options":"nosniff","x-jsr-backend":"modules","vary":"Origin","set-cookie":"__cf_bm=qehrbF1MRe.viLZEOegaxcXn26UWYvXfGiVvOPrTlpA-1785241875.1379547-1.0.1.1-pG.6G5lggHaeS7xpIU2dKmWmW3TKbcnB5NpSY2tE2CpwmOyzTEolv8uOe0tubs_sEJxlAKdFcXWI028hYFC7C2pB5lq5zofz8Tkug04ffo84cmJXrjXb8Oq4CNJJkttt; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","x-robots-tag":"noindex","age":"3642311","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","content-length":"1429","cf-ray":"a223e6579a067db6-LAX","cf-cache-status":"HIT","accept-ranges":"bytes","access-control-allow-origin":"*","etag":"\"e7d37a8acdeb91b0d584b8c9d1620490\"","access-control-expose-headers":"*","server":"cloudflare","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=rO%2FUJSLC4dZSOdgm2n6Thx%2BhVl%2FHBaAKYdQKvP1vAk4dTSBIIdLY4XnhNfP0Qt%2B5d3M8k7AolP%2FJ4owmnDcWwaVTK0SJCAc5t%2FnRg1UDywmI8LUkOnS4%2Fb8%3D\"}]}","alt-svc":"h3=\":443\"; ma=86400","cache-control":"public, max-age=31536000, immutable","cross-origin-resource-policy":"cross-origin"},"url":"https://jsr.io/@std/path/0.224.0/windows/mod.ts","time":1785241875}