Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace pathUtils

Index

Functions

Const filterPathsByPrefix

  • filterPathsByPrefix(prefix: string, paths: string[]): string[]
  • Filters paths that have the given prefix.

    Parameters

    • prefix: string
    • paths: string[]

    Returns string[]

Const getParentPath

  • getParentPath(...args: [string: string]): string
  • Retrieves parent path from the given one.

    Parameters

    • Rest ...args: [string: string]

    Returns string

Const joinPath

  • joinPath(array: (string | number)[]): string
  • Joins a path in array format into a string.

    Parameters

    • array: (string | number)[]

    Returns string

Const removePrefix

  • removePrefix(prefix: string, paths: string[]): string[]
  • Removes prefix from the given paths.

    Parameters

    • prefix: string
    • paths: string[]

    Returns string[]

Const splitPath

  • splitPath(string: string): string[]
  • Splits a path in string format into an array.

    Parameters

    • string: string

    Returns string[]

Generated using TypeDoc