import { realpathSync } from 'fs' ; import tmp = require ( 'tmp' ) ; returns { string } export function createTmpDir ( ) { return realpathSync ( tmp . dirSync ( { unsafeCleanup : true } ) . name ) ; }