Options
All
  • Public
  • Public/Protected
  • All
Menu

Module nextra/createFile

Index

Functions

createFile

  • createFile(file: string, atomic?: boolean): Promise<void>
  • Creates an empty file, making all folders required to satisfy the given file path.

    function

    createFile

    memberof

    fsn/nextra

    Parameters

    • file: string

      Path of the file you want to create

    • atomic: boolean = false

      Whether the operation should run atomically

    Returns Promise<void>

Const ensureFile

  • ensureFile(file: string, atomic?: boolean): Promise<void>

Generated using TypeDoc