Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

basename

  • basename(p: string, ext?: string): string
  • Parameters

    • p: string
    • Optional ext: string

    Returns string

dirname

  • dirname(p: string): string
  • Parameters

    • p: string

    Returns string

extname

  • extname(path: string): string
  • Return the extension of the path, from the last '.' to end of string in the last portion of the path. If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.

    throws

    {TypeError} if path is not a string.

    Parameters

    • path: string

      the path to evaluate.

    Returns string

isBelongTo

  • isBelongTo(path: string, sub: string): boolean
  • Parameters

    • path: string
    • sub: string

    Returns boolean

join

  • join(...paths: string[]): string
  • Join all arguments together and normalize the resulting path.

    throws

    {TypeError} if any of the path segments is not a string.

    Parameters

    • Rest ...paths: string[]

      paths to join.

    Returns string

normalizeSep

  • normalizeSep(p: string): string
  • Parameters

    • p: string

    Returns string

relative

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

    • from: string
    • to: string

    Returns string

resolve

  • resolve(...args: string[]): string
  • Parameters

    • Rest ...args: string[]

    Returns string

Generated using TypeDoc