Skip to content
JS
Package

unused-filename

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

v4.0.1, 25 Mar 2022MITESM onlyTypes: BundledFiles and file systems
$ npm install unused-filename

Key numbers

As of 25 Sept 2026
Weekly downloads
279.4k
+175% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
4 years ago
v4.0.1
GitHub stars
143
9 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
1

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 424.2k (5 May 2026)Low 63.1k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

279,372 downloads last week, 1,167,870 in the last month. The 12-month change of +175% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
4.0.1, 25 Mar 20224 years ago
First published
-
Last push to GitHub
18 Sept 20266 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
1
Dependents on npm
36

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
^12.20.0 || ^14.13.1 || >=16.0.0
Runtimes
-
Unpacked size (npm)
12 kB
Dependencies (2)
path-existsescape-string-regexp
npm install unused-filename
  • jsDelivrhttps://cdn.jsdelivr.net/npm/unused-filename@4.0.1/
  • unpkghttps://unpkg.com/unused-filename@4.0.1/
  • esm.shhttps://esm.sh/unused-filename@4.0.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.