This release is 47 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


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); }