Options
All
  • Public
  • Public/Protected
  • All
Menu

Command line utils functions.

Hierarchy

  • CommandUtils

Index

Methods

Static createDirectories

  • createDirectories(directory: string): Promise<Object>

Static createFile

  • createFile(filePath: string, content: string, override?: boolean): Promise<void>
  • Creates a file with the given content in the given path.

    Parameters

    • filePath: string
    • content: string
    • Default value override: boolean = true

    Returns Promise<void>

Static fileExists

  • fileExists(filePath: string): Promise<boolean>

Static readFile

  • readFile(filePath: string): Promise<string>
  • Reads everything from a given file and returns its content as a string.

    Parameters

    • filePath: string

    Returns Promise<string>

Generated using TypeDoc