footprintjs - v11.2.0
    Preparing search index...

    Function readRecordFile

    • Read a record file back, line by line — the entries for readStoredRecord, and every line that could not be read, by number, never a failed read. A stored key named __proto__ stays data (JSON.parse makes it an own property). The file is untrusted: a file larger than maxBytes (default 256 MiB) is refused before it is read.

      Parameters

      • path: string
      • Optionaloptions: { maxBytes?: number }

      Returns RecordFile

      RangeError when the file is larger than maxBytes; the operating system's error when it cannot be read.