Options
All
  • Public
  • Public/Protected
  • All
Menu

Module nextra/writeFileAtomic

Index

Interfaces

Type aliases

Functions

Type aliases

BaseEncodingOptions

BaseEncodingOptions: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | null | undefined

Functions

writeFileAtomic

  • function

    writeFileAtomic

    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