Options
All
  • Public
  • Public/Protected
  • All
Menu

Module nextra/outputJSON

Index

Functions

outputJSON

  • outputJSON(file: string, data: any, atomic?: boolean): Promise<void>
  • outputJSON(file: string, data: any, options?: JsonOptions, atomic?: boolean): Promise<void>
  • Writes a json file to disk, creating all directories needed to meet the filepath provided.

    function

    outputJSON

    memberof

    fsn/nextra

    Parameters

    • file: string

      The path to the file you want to create

    • data: any

      The data to write to file

    • Optional atomic: boolean

      If the operation should be done atomically

    Returns Promise<void>

  • Parameters

    • file: string
    • data: any
    • Optional options: JsonOptions
    • Optional atomic: boolean

    Returns Promise<void>

Const outputJson

  • outputJson(file: string, data: any, atomic?: boolean): Promise<void>
  • outputJson(file: string, data: any, options?: JsonOptions, atomic?: boolean): Promise<void>

Generated using TypeDoc