Options
All
  • Public
  • Public/Protected
  • All
Menu

Module nextra/outputFile

Index

Functions

Functions

outputFile

  • outputFile(file: string, data: string | Buffer | Uint8Array, atomic?: boolean): Promise<void>
  • outputFile(file: string, data: string | Buffer | Uint8Array, options?: WriteOptions | BaseEncodingOptions, atomic?: boolean): Promise<void>
  • Writes a file to disk, creating all directories needed to meet the filepath provided.

    function

    outputFile

    memberof

    fsn/nextra

    Parameters

    • file: string

      The path to the file you want to create

    • data: string | Buffer | Uint8Array

      The data to write to file

    • Optional atomic: boolean

    Returns Promise<void>

  • Parameters

    Returns Promise<void>

Generated using TypeDoc