This release is 48 versions behind 1.1.4 — the latest version of @std/path. Jump to latest
Utilities for working with file system paths
This package works with Cloudflare Workers, Deno, Browsers


JSR Score
94%
Published
2 years ago (0.198.0)
Utilities for working with OS-specific file paths.
Codes in the examples uses POSIX path but it automatically use Windows path
on Windows. Use methods under posix or win32 object instead to handle non
platform specific path like:
import { posix, win32 } from "@std/path"; const p1 = posix.fromFileUrl("file:///home/foo"); const p2 = win32.fromFileUrl("file:///home/foo"); console.log(p1); // "/home/foo" console.log(p2); // "\\home\\foo"
This module is browser compatible.
Add Package
deno add jsr:@std/path
Import symbol
import * as path from "@std/path";
Import directly with a jsr specifier
import * as path from "jsr:@std/path";