function tmpfilepath(prefix) {
    const rn = Math.random().toString(16).substring(2, 8);
    const p = path.resolve(os.tmpdir(), prefix ? `${prefix}-${rn}` : rn);
    return p;
}
/**
 * Generate a random file path within the computer's temporary directory.
 *
 * @param prefix Optionally provide a filename prefix.
 */
Generate a random file path within the computer's temporary directory.
@param prefix Optionally provide a filename prefix.
Generate a random file path within the computer ' s temporary directory . @param prefix Optionally provide a filename prefix .
function tmpfilepath(prefix) {
    const rn = Math.random().toString(16).substring(2, 8);
    const p = path.resolve(os.tmpdir(), prefix ? `${prefix}-${rn}` : rn);
    return p;
}
function tmpfilepath ( prefix ) { const rn = Math . random ( ) . toString ( 16 ) . substring ( 2 , 8 ) ; const p = path . resolve ( os . tmpdir ( ) , prefix ? ` ${ prefix } ${ rn } ` : rn ) ; return p ; }
Generate a random file path within the computer's temporary directory.
Generate a random file path within the computer ' s temporary directory .