Add ability to easily cleanup
See original GitHub issueOffer both cleanup when the process exits, manual cleanup method call, and also a context-based cleanup, for examples:
tempy.context(directory => {
// Use the temp
});
// Temp directory is cleaned up here.
(The temp directory is cleaned up after the callback scope.)
(The above is just an idea. Please consider a better API and naming.)
(The context callback should also be able to be an async
function.)
Inspiration: Python Context Managers
If you decide to work on this, please put a good effort into the implementation, docs (and TS definition), and tests.
IssueHunt Summary
richienb has been rewarded.
Backers (Total: $80.00)
- issuehunt ($80.00)
Submitted pull Requests
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Cleanup: Phone Storage Cleaner 4+ - App Store
Download Cleanup: Phone Storage Cleaner and enjoy it on your iPhone, iPad, and iPod touch. ... Cleanup is here to make this process...
Read more >6 Easy Tips for Simplifying ADHD and House Cleaning
In this article, we want to provide you a boost to your confidence in your ability to manage ADHD and house cleaning. You...
Read more >Disk cleanup in Windows - Microsoft Support
In the search box on the taskbar, type disk cleanup, and select Disk Cleanup from the list of results. Select the drive you...
Read more >Clean Up Your iPhone or iPad IN UNDER 10 MINUTES!!!
Today David's showing you how to clean up your iPhone or iPad in UNDER 10 MINUTES! No 3rd party software! Just a bunch...
Read more >11 Cleaner Apps to Free up Space on iPhone - Geekflare
Clean Master – Super Cleaner has the power to clean up the gallery quickly with a few clicks. It can organize a messy...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The first suggestion is not desirable as it would complicate the TS types and it would be better to just add a
.cleanup()
method:The second suggestion would also not be better than what’s above.
I think the last suggestion there is the best.
@sindresorhus has rewarded $72.00 to @richienb. See it on IssueHunt