Options
All
  • Public
  • Public/Protected
  • All
Menu

Module nextra/outputFileAtomic

Index

Functions

Functions

outputFileAtomic

  • Writes a file to disk, creating all directories needed to meet the filepath provided atomically.

    function

    outputFileAtomic

    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 options: WriteOptions | BaseEncodingOptions

      The write options or the encoding string.

    Returns Promise<void>

Generated using TypeDoc