std@0.139.0/path/posix.ts

Deno standard library
GitHub Stars
2199
Go to latest
import * as mod from "https://deno.land/std@0.139.0/path/posix.ts";

Functions

basename

Return the last portion of a path. Trailing directory separators are ignored.

dirname

Return the directory name of a path.

extname

Return the extension of the path with leading period.

format

Generate a path from FormatInputPathObject object.

fromFileUrl

Converts a file URL to a path string.

isAbsolute

Verifies whether provided path is absolute

join

Join all given a sequence of paths,then normalizes the resulting path.

normalize

Normalize the path, resolving '..' and '.' segments.

parse

Return a ParsedPath object of the path.

relative

Return the relative path from from to to based on current working directory.

resolve

Resolves pathSegments into an absolute path.

toFileUrl

Converts a path string to a file URL.

toNamespacedPath

Resolves path to a namespace path