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.
Syncrhonously creates a temporary file and deletes it after the callback has finished.