std@0.139.0/path/win32.ts

Deno standard library
GitHub Stars
2199
Go to latest
import * as mod from "https://deno.land/std@0.139.0/path/win32.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 path is absolute

join

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

normalize

Normalizes a path

parse

Return a ParsedPath object of the path.

relative

It will solve the relative path from from to to, for instance: from = 'C:\orandea\test\aaa' to = 'C:\orandea\impl\bbb' The output of the function should be: '..\..\impl\bbb'

resolve

Resolves path segments into a path

toFileUrl

Converts a path string to a file URL.

toNamespacedPath

Resolves path to a namespace path