const temp = require ( 'temp' ) ; temp . track ( ) ; export function createTemp ( ) { return new Promise < string > ( ( resolve , reject ) => { temp . mkdir ( 'com.ceriously.magnemite' , ( err , dirPath ) => { if ( err ) { reject ( err ) ; } else { resolve ( dirPath ) ; } } ) ; } ) ; } export function cleanup ( ) { return temp . cleanupSync ( ) ; }