Options
All
  • Public
  • Public/Protected
  • All
Menu

Module nextra/writeJSONAtomic

Index

Functions

writeJSONAtomic

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

    function

    writeJSONAtomic

    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

    • options: JsonOptions = {}

      The options to pass JSON.stringify and writeFile

    Returns Promise<void>

Const writeJsonAtomic

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

Generated using TypeDoc