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

@std/path@0.224.0
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%
Downloads137,320/wk
Published2 years ago (0.224.0)

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"; import { join as posixJoin } from "./posix/join.ts"; import { join as windowsJoin } from "./windows/join.ts"; /** * Join all given a sequence of `paths`,then normalizes the resulting path. * @param paths to be joined and normalized */ export function join(...paths: string[]): string { return isWindows ? windowsJoin(...paths) : posixJoin(...paths); }