youtemp
v0.0.2
Published
Create temporary folders in your system cache
Maintainers
Readme
youtemp creates temporary folders in your system's cache during the script's runtime.
If the environment where the script is running is closed unexpectedly, the temporary file will not be deleted.
Module
import YouTemp from "youtemp";Commonjs
const YouTemp = require("youtemp");Uso
const temp = new YouTemp("<name>"); // The name is optional
console.log(temp.path); // Path to the folder
temp.clear(); // Clears the folder's content