Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IOService

Hierarchy

  • IOService

Index

Methods

copyDirectory

  • copyDirectory(source: string, destination: string): Promise<void>
  • Copies a directory recursively from source to destination

    Parameters

    • source: string

      Source directory

    • destination: string

      Destination directory

    Returns Promise<void>

ensureDirectoryExists

  • ensureDirectoryExists(filename: string): Promise<void>

fileExists

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

mkDir

  • mkDir(directory: string): Promise<void>

readFile

  • readFile(filename: string, encoding?: string): Promise<string>
  • Parameters

    • filename: string
    • Default value encoding: string = "utf8"

    Returns Promise<string>

readStdin

  • readStdin(): Promise<string>

writeFile

  • writeFile(data: string, filename: string, encoding?: string): Promise<void>
  • Parameters

    • data: string
    • filename: string
    • Default value encoding: string = "utf8"

    Returns Promise<void>

Generated using TypeDoc