import * as tmp from 'tmp' ; export function tmpFileName ( ) { return new Promise < string > ( ( resolve , reject ) => { tmp . tmpName ( ( err , path ) => { err ? reject ( err ) : resolve ( path ) ; } ) ; } ) ; }