index.d.ts 395 B

123456789101112131415161718
  1. /**
  2. Get the real path of the system temp directory.
  3. @example
  4. ```
  5. import * as os from 'os';
  6. import tempDirectory = require('temp-dir');
  7. console.log(tempDirectory);
  8. //=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T'
  9. console.log(os.tmpdir());
  10. //=> '/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T' // <= Symlink
  11. ```
  12. */
  13. declare const tempDirectory: string;
  14. export = tempDirectory;