@bitbeater/node-utils - v3.0.0
    Preparing search index...

    Function fileLinesSync

    • Reads a file and returns an array of string lines.

      Parameters

      • path: string

        The path to the file.

      • lineSeparator: RegExp = ...

        The regular expression used to split the file into lines. Defaults to /[\n|\r]/.

      Returns string[]

      An array of lines from the file, or null if the file cannot be read.