utility tools for manipulating paths and obtaining URLs.

TODO: write document level examples.

url terminology:

  • urls are a subset of uris
  • a url protocol is defined as: [scheme]://
  • a url is defined as: [scheme]://[host]/[path]?[queryString]#[fragmentHash]
  • or equivalently, a url is: [protocol][host]/[path]?[queryString]#[fragmentHash]
  • a uri is defined as: [scheme]:[someIdentifier]

Interfaces

PackagePseudoUrl
NormalizePathConfig
FilepathInfo

Type Aliases

UriScheme

Variables

uriProtocolSchemeMap
forbiddenBaseUriSchemes

Functions

isAbsolutePath
getUriScheme
parsePackageUrl
resolveAsUrl
trimStartSlashes
trimEndSlashes
trimSlashes
ensureStartSlash
ensureStartDotSlash
ensureEndSlash
trimStartDotSlashes
trimEndDotSlashes
trimDotSlashes
joinSlash
normalizePosixPath
normalizePath
pathToPosixPath
pathsToCliArg
commonNormalizedPosixPath
commonPath
commonPathTransform
commonPathReplace
parseFilepathInfo
relativePath
joinPosixPaths
joinPaths
resolvePosixPathFactory
resolvePathFactory
globPatternToRegex