std/path/constants.ts
Lino Le Van 18d6a0ee30
deprecation(path): split off all constants into their own files and deprecate old names (#4153)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-18 14:54:39 +09:00

8 lines
348 B
TypeScript

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
import { isWindows } from "./_os.ts";
export const DELIMITER = isWindows ? ";" as const : ":" as const;
export const SEPARATOR = isWindows ? "\\" as const : "/" as const;
export const SEPARATOR_PATTERN = isWindows ? /[\\/]+/ : /\/+/;