-
Notifications
You must be signed in to change notification settings - Fork 98
Closed
Description
Tmp Version
0.2.1
Expected Behavior
When I use the following example code from the readme:
tmp.file({ mode: 0o644, prefix: 'prefix-', postfix: '.txt' }, /*...*/);
I expect to get a filename like this:
prefix-blabla-blabla.txt
That was the behavior in old versions.
Experienced Behavior
I get a filename like this:
prefix--blabla-blabla-.txt
While the first redundant dash can be fixed by removing - from prefix, the dash before the extension stays there.
i.e. If I have postfix: '.txt', I get [...]bla[...]-.tmp.