with-tmp
Easily create a temporary directory without having to worry about cleanup.
; await withTmpdir"my-tmp-dir", ; // tmpdir is cleaned up
Do tasks from within the temporary directory without having to worry about restoring your environment.
; process.cwd; // => /home/me/workspaceawait withinTmpdir"my-other-tmp-dir", ;