close
Skip to main content

@std/path@1.1.5
Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score100%
License
MIT
Downloads141,674/wk
Published2 weeks ago (1.1.5)

Utilities for working with file system paths

Functions

f
parse(path: string): ParsedPath

Return an object containing the parsed components of the path.

Interfaces

I

A parsed path object generated by path.parse() or consumed by path.format().

  • base: string

    The file name including extension (if any) such as 'index.html'

  • dir: string

    The full directory path of the parent such as '/home/user/dir' or 'c:\path\dir'

  • ext: string

    The file extension (if any) such as '.html'

  • name: string

    The file name without extension (if any) such as 'index'

  • root: string

    The root of the path such as '/' or 'c:'

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/path

Import symbol

import * as mod from "@std/path/parse";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/path/parse";