Schedule deleting all file in a directory in X time after their creation.
npm install node-crond --save
dirString - The path to directory
timeInMsNumber - The time in miliseconds to delete the file after their time creation
debugBoolean - Log the deleted file to console
const CronD = ;// intialize crond to delete all files in ./path/to/dir directory with 120000ms (2 minutes) after the file creation timeconst crond = dir: "./path/to/dir" timeInMs: 120000 ;// start the check (remember that crond already have the interval to check set to 5 seconds so you do not need to do the interval again yourself)crond;// clear the intervalcrond;