This release is 28 versions behind 1.1.4 — the latest version of @std/path. Jump to latest
Works with
•JSR Score94%•This package works with Cloudflare Workers, Deno, Browsers


Downloads81,399/wk
•Published2 years ago (0.217.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 type { GlobOptions } from "./_common/glob_to_reg_exp.ts"; import { isWindows } from "./_os.ts"; import { joinGlobs as posixJoinGlobs } from "./posix/join_globs.ts"; import { joinGlobs as windowsJoinGlobs } from "./windows/join_globs.ts"; export type { GlobOptions }; /** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */ export function joinGlobs( globs: string[], options: GlobOptions = {}, ): string { return isWindows ? windowsJoinGlobs(globs, options) : posixJoinGlobs(globs, options); }