Skip to content
Permalink
Newer
Older
100644 22 lines (17 sloc) 433 Bytes
Ignoring revisions in .git-blame-ignore-revs.
May 4, 2020 18:50
1
/**
2
Get the real path of the system temp directory.
3
4
@example
5
```
January 18, 2023 20:50
6
import temporaryDirectory from 'temp-dir';
May 4, 2020 18:50
7
January 18, 2023 20:50
8
console.log(temporaryDirectory);
May 4, 2020 18:50
9
//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T'
January 18, 2023 20:50
10
```
11
12
@example
13
```
14
import os from 'node:os';
May 4, 2020 18:50
15
16
console.log(os.tmpdir());
17
//=> '/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T' // <= Symlink
18
```
19
*/
January 18, 2023 20:50
20
declare const temporaryDirectory: string;
May 4, 2020 18:50
21
January 18, 2023 20:50
22
export default temporaryDirectory;