// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
import { isWindows } from "./_os.ts";

/**
 * The character used to separate entries in the PATH environment variable.
 * On Windows, this is `;`. On all other platforms, this is `:`.
 */
export const DELIMITER = isWindows ? ";" as const : ":" as const;
/**
 * The character used to separate components of a file path.
 * On Windows, this is `\`. On all other platforms, this is `/`.
 */
export const SEPARATOR = isWindows ? "\\" as const : "/" as const;
/**
 * A regular expression that matches one or more path separators.
 */
export const SEPARATOR_PATTERN = isWindows ? /[\\/]+/ : /\/+/;

// denoCacheMetadata={"headers":{"x-content-type-options":"nosniff","accept-ranges":"bytes","cf-ray":"a223e658bd587db6-LAX","x-robots-tag":"noindex","age":"126790","access-control-expose-headers":"*","content-type":"text/typescript","etag":"\"8a4cad8c7b8bce99a6b2ea08e9850bf9\"","access-control-allow-origin":"*","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-jsr-backend":"modules","set-cookie":"__cf_bm=oEMze.WJqvXLsUaOGgn2rFyJOk6m5MmCP0HL2SmObgY-1785241875.3206556-1.0.1.1-0qQhhcb2_iLe.D7Y64kYIRXKMGt6PMlHNVbeey3wnpQPjD4bLhHmAkpvpVSPU3cYamcDCX2W5bkZZ.hZaY8OL6zq7dU8Xb7OMKf9gGugvl_z031JyjKCaS5dWQOLC4x5; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","cache-control":"public, max-age=31536000, immutable","content-length":"705","vary":"Origin","server":"cloudflare","cross-origin-resource-policy":"cross-origin","cf-cache-status":"HIT","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=Wt22pkFA3qItoTBNiN8bFmFpumtv1JyyfW%2BngXuaT1AUefvpwLfUdFf6HcUXgDtkHMW4qCvlr%2BA2bGTHlc0RkmkGqKqjDrN7frn3kyuf%2FDBg3DnTQUShopw%3D\"}]}","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","date":"Tue, 28 Jul 2026 12:31:15 GMT","alt-svc":"h3=\":443\"; ma=86400"},"url":"https://jsr.io/@std/path/1.0.0-rc.2/constants.ts","time":1785241875}