Function tempFileSync

  • Syncrhonously creates a temporary file and deletes it after the callback has finished.

    Parameters

    • fileExtension: string

      The file extension to use for the temporary file.

    • callback: ((fpath) => any)

      The callback to execute with the temporary file path. The callback can return a promise and the temporary file will not be deleted until the promise has resolved or rejected.

        • (fpath): any
        • Parameters

          • fpath: string

          Returns any

    Returns any

Generated using TypeDoc