mirror of
https://github.com/github/codeql-action.git
synced 2025-12-26 17:20:10 +08:00
23 lines
433 B
TypeScript
23 lines
433 B
TypeScript
/**
|
|
Get the real path of the system temp directory.
|
|
|
|
@example
|
|
```
|
|
import temporaryDirectory from 'temp-dir';
|
|
|
|
console.log(temporaryDirectory);
|
|
//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T'
|
|
```
|
|
|
|
@example
|
|
```
|
|
import os from 'node:os';
|
|
|
|
console.log(os.tmpdir());
|
|
//=> '/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T' // <= Symlink
|
|
```
|
|
*/
|
|
declare const temporaryDirectory: string;
|
|
|
|
export default temporaryDirectory;
|