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.