blob: c362a39e65c857f058d07a784658317a8a3196e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import * as os from 'os';
/**
* Gets the temporary directory, either from the environmental variable
* `PUPPETEER_TMP_DIR` or the `os.tmpdir`.
*
* @returns The temporary directory path.
*
* @internal
*/
export const tmpdir = (): string => {
return process.env['PUPPETEER_TMP_DIR'] || os.tmpdir();
};
|