Options
All
  • Public
  • Public/Protected
  • All
Menu

Module nextra/outputJSONAtomic

Index

Functions

outputJSONAtomic

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

    function

    outputJSONAtomic

    memberof

    fsn/nextra

    Parameters

    • file: string

      The path to the file you want to create

    • data: any

      The data to write to file

    • Optional options: JsonOptions

      The write options or the encoding string.

    Returns Promise<void>

Const outputJsonAtomic

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

Generated using TypeDoc