raszi / node-tmp

Temporary file and directory creator for node.js
MIT License
735 stars 92 forks source link

Change README.md reference of Graceful Cleanup #266

Closed kostaslamo closed 2 years ago

kostaslamo commented 3 years ago

Operating System

NodeJS Version

Tmp Version

TBD:Enter tmp version here latest

Expected Behavior

TBD:What have you expected tmp to do? Delete "temporary" files and folders on process exit

Experienced Behavior

TBD:What did actually happen? Did not delete "temporary" files on process exit.(I haven't read in the end of the Readme.md that i should use tmp.setGracefulCleanup() as you mention that files and directories are removed on process exit in the first lines and i was expecting this behaviour)

Please change the position of Graceful cleanup on README.md maybe on the beginning so that it will be clear that this should be used in order that tmp files and dirs are cleaned up in process exit.