Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils"

Index

Functions

dirAsListSync

  • dirAsListSync($root: string, result: string[]): void
  • Recursive function to store a directory three in result[]

    Parameters

    • $root: string
    • result: string[]

    Returns void

getSubDirectoryNames

  • getSubDirectoryNames(srcPath: any): string[]
  • Returns an array with the subdirectories of 'srcPath' (Non Recursive).

    Parameters

    • srcPath: any

    Returns string[]

    string[]

isComplaintName

  • isComplaintName(moduleName: string, nameConstrain: RegExp): boolean
  • Check whether the given name contains only alphanumeric and underscore characters. If the string is not compliant an Error is Thrown.

    Parameters

    • moduleName: string
    • nameConstrain: RegExp

    Returns boolean

listDir

  • listDir($root: string): string[]
  • Returs an array caontaining all subdirectories and files of $root

    Parameters

    • $root: string

    Returns string[]

replaceAll

  • replaceAll(target: string, search: string, replacement: string): string
  • Replace All occurrences of the string 'search' in 'target' with the value of 'replacement

    Parameters

    • target: string
    • search: string
    • replacement: string

    Returns string

Generated using TypeDoc