raszi / node-tmp

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

API Misconceptions #245

Closed silkentrance closed 2 years ago

silkentrance commented 4 years ago

There exist a lot of misconceptions about the tmp API in general, e.g.

https://github.com/DevExpress/testcafe-browser-provider-browserstack/blob/dbdaf1c00268f9273e566d6d244a25ca31687e41/src/connector.js#L49

Here, the user expects to have tmp clean up a file that is not under its direct control, as the user is only requesting a more or less unique name from tmp.

And the list goes on...

silkentrance commented 2 years ago

This might be solved with #157 + #281