Function makeTempDir

  • Create a unique temporary directory. The given template must end in XXXXXX, and the Xs will be replaced to provide a unique directory name.

    const tmpDir = await tjs.makeTempDir('tmpDirXXXXXX');
    

    Parameters

    • template: string

      Template for the directory.

    Returns Promise<string>