• Reads a file line by line and calls the given function for each line. The lineNumber starts at 0.

    See readLineByLine for an asynchronous version.

    Parameters

    • filePath: string
    • onLine: ((line: Buffer, lineNumber: number) => void)
        • (line, lineNumber): void
        • Parameters

          • line: Buffer
          • lineNumber: number

          Returns void

    Returns void