Closed harigopalakrishna closed 8 years ago
A quick note : I noticed that pull request has too many whitespace changes, which i did not intend to make
I would rather not use another module when this could be just as easily accomplished with rand().
Sounds good. Thanks for the feedback. The goal is not to produce conflicting filenames when mass producing these temp files. rand() did not cut it for me.
Hey - I was filling multiple PDFs asynchronously (ran in to a conflict with .fdf file names) and realized that the below way of creating temp .fdf is not scaling for my needs.
tempFDF = "data" + (new Date().getTime()) + ".fdf";
I changed the line to use 'tmp' module, and make necessary changes in package.json
tempFDF= tmpFileobj.name+'.'+new Date().getTime() +".fdf";
Thanks, Hari