Skip to content

Export _getTmpName for temporary file name creation #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 24, 2012

Conversation

joscha
Copy link
Contributor

@joscha joscha commented Aug 23, 2012

Hello there,

I am currently working on a module for node.js that runs an external process - this external process needs to get passed a file name to store its results in (until I read them from there and delete that file).
Currently I am using require('tmp').tmpdir and generate the file name myself, but your _getTmpName method does exactly this, so I would love to reuse it. Would it be possible to include it in the exports?

Cheers,
Joscha

Export _getTmpName for temporary file name creation
@joscha joscha mentioned this pull request Aug 23, 2012
@raszi
Copy link
Owner

raszi commented Aug 23, 2012

I would love to merge it if you could provide some tests. Could you do them?

@joscha
Copy link
Contributor Author

joscha commented Aug 23, 2012

Sure I can, but I actually did not change any of your base library code - _getTmpName is used by all tests in https://github.com/raszi/node-tmp/blob/master/test/file-test.js. The only thing added is the export (see commit) - what would you like to have tested?

@raszi
Copy link
Owner

raszi commented Aug 23, 2012

Yes, but since it's exported the API should not be changed and therefore a test is needed.

@travisbot
Copy link

This pull request passes (merged 2761205 into 661225f).

@joscha
Copy link
Contributor Author

joscha commented Aug 24, 2012

Done.

@joscha
Copy link
Contributor Author

joscha commented Aug 24, 2012

We probably should bump the version after this.

@raszi
Copy link
Owner

raszi commented Aug 24, 2012

Thank you, wonderful!

Yes, absolutely, we need to bump the version.

raszi added a commit that referenced this pull request Aug 24, 2012
Export _getTmpName for temporary file name creation fixes #5
@raszi raszi merged commit a6a3ae5 into raszi:master Aug 24, 2012
raszi added a commit that referenced this pull request May 11, 2015
Export _getTmpName for temporary file name creation fixes #5
@silkentrance silkentrance mentioned this pull request Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants