Function readLinesSync

  • Synchronously read a file into a string array of its lines.

    Parameters

    • path: string

      the path to the file to read

    • encoding: BufferEncoding = 'utf8'

      the encoding to use to read the file, default is UTF-8

    Returns string[]

    the file's lines

Generated using TypeDoc