Skip to main content

PathUtils <P>

Index

Properties

readonlydelimiter

delimiter: string

readonlysep

sep: P

Methods

basename

  • Parameters

    • p: P
    • optionalext: string

    Returns Filename

contains

  • contains(from: P, to: P): null | P
  • Parameters

    • from: P
    • to: P

    Returns null | P

cwd

  • cwd(): P
  • Returns P

dirname

  • dirname(p: P): P
  • Parameters

    • p: P

    Returns P

extname

  • extname(p: P): string
  • Parameters

    • p: P

    Returns string

format

isAbsolute

  • isAbsolute(path: P): boolean
  • Parameters

    • path: P

    Returns boolean

join

  • join(...paths: (NoInfer<P> | Filename)[]): P
  • Parameters

    Returns P

normalize

  • normalize(p: P): P
  • Parameters

    • p: P

    Returns P

parse

relative

  • relative(from: P, to: P): P
  • Parameters

    • from: P
    • to: P

    Returns P

resolve

  • resolve(...pathSegments: (NoInfer<P> | Filename)[]): P
  • Parameters

    • rest...pathSegments: (NoInfer<P> | Filename)[]

    Returns P