happy-opfs
    Preparing search index...

    Function mkTempSync

    • Synchronous version of mkTemp. Creates a temporary file or directory.

      Parameters

      • Optionaloptions: TempOptions

        Optional temp options (e.g., isDirectory, basename, extname).

      Returns IOResult<string>

      An IOResult containing the temporary path.

      mkTemp for the async version.

      1.7.0

      mkTempSync({ extname: '.txt' })
      .inspect(path => console.log('Temp file:', path));