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

@std/path@0.225.2
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%
Downloads136,652/wk
Published2 years ago (0.225.2)

Utilities for working with file system paths

// 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 ? /[\\/]+/ : /\/+/;