unused-filename

Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`

Browse on unpkg