json-fs-query
    Preparing search index...

    Function retrieveFile

    • Read one JSON file of the database (see readJson), logging the underlying error and throwing one that names the file.

      Parameters

      • path: any

        A path inside the database, such as users.json.

      Returns Promise<any>

      Could not read <path> when the file can't be read.