JS Utils Kit
    Preparing search index...

    Function writeJsonFile

    • Serialize data to JSON and write it to a file.

      Parameters

      • path: string

        Path to the output file

      • data: unknown

        Data to serialize and write

      • __namedParameters: { replacer?: JsonReplacer; space?: string | number } = {}

      Returns Promise<void>

      A promise that resolves when the file is written.

      Overwrites the file if it already exists.