temp-dir is a lightweight Node.js package that simplifies the creation and management of temporary directories. It offers a straightforward API to create, clean up, and retrieve paths to temporary directories, ideal for testing or scenarios requiring isolated file storage. temp-dir automatically handles temporary directory deletion on process exit, ensuring a clean environment. Customize prefixes or manually manage the lifetime of the temporary directories for greater control.
The npm package temp-dir has seen very infrequent releases. Version 1.0.0 was released in March 2017, version 2.0.0 in April 2019, and version 3.0.0 in September 2022. There have been no releases since September 2022, and no releases in 2018, 2020, 2021, 2023, 2024 or 2025.
The npm package temp-dir experienced fluctuating downloads. Downloads steadily increased throughout 2024, peaking in July before declining slightly. 2025 saw a continuation of high download numbers, with a significant jump in June. August, being incomplete, shows lower downloads.