H5P NodeJS Library
    Preparing search index...

    Reads key-value pairs from a JSON file and writes them back. It is recommended to create it with the static create(...) factory instead of the sync constructor.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    storage: any

    Methods

    • Factory for a JsonStorage object that initializes the object. Throws errors is something is wrong with the file (not accessible / can't be parsed).

      Parameters

      • file: string

        Path to the JSON file (must be read- and writeable)

      Returns Promise<JsonStorage>