Skip to content
JS
Package

valid-filename

Check if a string is a valid filename

v5.0.0, 28 Aug 2026MITESM onlyTypes: Bundled
$ npm install valid-filename

Key numbers

As of 25 Sept 2026
Weekly downloads
86.3k
+21% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
27 days ago
v5.0.0
GitHub stars
60
8 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
2

Downloads

Last week 2026-09-15 to 2026-09-21
050k100k150k200kSept 2025Mar 2026Sept 2026High 194.1k (12 May 2026)Low 44.5k (30 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

86,319 downloads last week, 469,491 in the last month. The 12-month change of +21% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
5.0.0, 28 Aug 202627 days ago
First published
-
Last push to GitHub
28 Aug 202627 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
2
Dependents on npm
115

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=22
Runtimes
-
Unpacked size (npm)
3.5 kB
Dependencies (1)
filename-reserved-regex
npm install valid-filename
  • jsDelivrhttps://cdn.jsdelivr.net/npm/valid-filename@5.0.0/
  • unpkghttps://unpkg.com/valid-filename@5.0.0/
  • esm.shhttps://esm.sh/valid-filename@5.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.