sindresorhus / tempy

Get a random temporary file or directory path
MIT License
423 stars 26 forks source link

POSIX $TMPDIR environment should be taken in account #16

Closed kelson42 closed 5 years ago

kelson42 commented 5 years ago

This modules seems to always, per default, create a path in /tmp directory. Unfortunately this is not only the right temporary directory path. If $TMPDIR is set this should be taken in account.

sindresorhus commented 5 years ago

https://github.com/sindresorhus/tempfile/issues/12#issuecomment-531565229