raszi / node-tmp

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

fileSync replaces postfix empty string option with '.tmp' #182

Closed gutte closed 5 years ago

gutte commented 5 years ago

Expected Behavior

Using the option: { postfix : '' } should omit the postfix completely from the filename. This is how the async file method behaves.

Experienced Behavior

The postfix option is replaced with '.tmp', making it impossible to use a filename with no postfix.

silkentrance commented 5 years ago

Ah now this makes sense :) well, done.