Skip to main content

Module resolve

Module resolve 

Source
Expand description

Port of src/fs/resolve.ts: path and url helpers.

Structs§

ResolvedPath
absolute and relative path of a resolved url

Functions§

diff
relative path from a directory
dirname
the directory name of a path
match_url
matchUrl: /^(https?:)?\/\//
normalize
normalize a path: backslashes, windows drive, query and fragment, ..
resolve
resolve a url relative to a directory (cwd is optional: “”)