Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`
by sindresorhusJavaScript
Last 12 weeks · 0 commits
4 of 6 standards met
Hi! First, Thank You for this and other great packages 👍 Just a heads up that this package fails to bundle with latest Vite (2.8.2) with following traceback: Usually adding wonky packages to config helps but couldn't get this one working at all. Not sure if the issue is with Vite, this package, my (TS) setup or just the color of the electricity today but I thought I'd report it anyways. Feel free to close if this doesn't seem valid.
Repository: sindresorhus/unused-filename. Description: Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt` Stars: 144, Forks: 9. Primary language: JavaScript. Languages: JavaScript (93.8%), TypeScript (6.2%). License: MIT. Latest release: v4.0.1 (4y ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, tomasklaen, jopemachine, martinvd, Richienb.