Options
All
  • Public
  • Public/Protected
  • All
Menu

Module nextra/writeJSON

Index

Interfaces

Functions

Functions

writeJSON

  • writeJSON(file: string, object: any, atomic?: boolean): Promise<void>
  • writeJSON(file: string, object: any, options?: JsonOptions, atomic?: boolean): Promise<void>
  • Writes a Javascript Object to file as JSON.

    function

    writeJSON

    memberof

    fsn/nextra

    Parameters

    • file: string

      The path to the file you want to create

    • object: any

      The javascript object you would like to write to file

    • Optional atomic: boolean

    Returns Promise<void>

  • Parameters

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

    Returns Promise<void>

Const writeJson

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

Generated using TypeDoc