Skip to main content
Home
This release is 47 versions behind 1.1.4 — the latest version of @std/path. Jump to latest
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%
Downloads105,805/wk
Published2 years ago (0.199.0)

Utilities for working with file system paths

// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. // This module is browser compatible. import { isWindows } from "jsr:/@std/internal@^0.199.0/os"; import type { ParsedPath } from "./_interface.ts"; import { posixParse, windowsParse } from "./_parse.ts"; /** * Return a `ParsedPath` object of the `path`. * @param path to process */ export function parse(path: string): ParsedPath { return isWindows ? windowsParse(path) : posixParse(path); }