Tempy simplifies creating temporary files and directories in Node.js. It offers a straightforward API for generating unique, random paths and ensuring cleanup after use. Ideal for testing or any scenario where temporary storage is needed, Tempy supports creating temporary files with custom extensions or directories with specific prefixes. Its robust design helps prevent naming conflicts and ensures secure file handling by managing temporary resources automatically.
Tempy, an npm package, saw its initial release in March 2017. Releases were sporadic, with bursts in 2017 and 2020. Version 1.0.0 was released in October 2020 and version 2.0.0 in August 2021. Version 3.0.0 released in April 2022 and 3.1.0 in July 2023. There have been no releases since July 2023.
Tempy's npm package downloads show a fluctuating trend. Starting from 29 million in March 2024, downloads peaked around 48 million in July and October 2024. A dip occurred in December 2024, followed by a recovery in early 2025. June 2025 saw a high of 52 million, before declining, with incomplete September 2025 data showing 9 million.