Skip to content
JS
Package

filedirname

Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)

v3.4.0, 29 Dec 2023Artistic-2.0ESM + CommonJSTypes: BundledPolyfills and shimsTypeScript tooling
$ npm install filedirname

Key numbers

As of 25 Sept 2026
Weekly downloads
3.7k
-8% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
2 years ago
v3.4.0
GitHub stars
16
3 forks
Open issues / PRs
1 / 1
Contributors
-
Commits, last 52 weeks
13

Downloads

Last week 2026-09-15 to 2026-09-21
02.5k5k7.5k10kSept 2025Mar 2026Sept 2026High 8.7k (3 Mar 2026)Low 2.5k (10 Feb 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

3,690 downloads last week, 19,574 in the last month. The 12-month change of -8% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
3.4.0, 29 Dec 20232 years ago
First published
-
Last push to GitHub
13 Sept 202611 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
1
Commits, last 52 weeks
13
Dependents on npm
20

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=4
Runtimes
-
Unpacked size (npm)
50 kB
Dependencies (3)
editionsget-current-line@bevry/file-url-to-path
npm install filedirname
  • jsDelivrhttps://cdn.jsdelivr.net/npm/filedirname@3.4.0/
  • unpkghttps://unpkg.com/filedirname@3.4.0/
  • esm.shhttps://esm.sh/filedirname@3.4.0
PackageWeekly downloadsGzipLast releaseModuleComparison
typescript-map6.4k-5 years agoCommonJS-
ember-cli-typescript-blueprint-polyfill96.3k-4 years agoCommonJS-
ts-polyfill29.3k-6 years agoCommonJS-
@thednp/dommatrix182k-22 days agoESM + CommonJS-
@okikio/sharedworker10.1k-1 year agoESM + CommonJS-
scroll-into-view-if-needed6.8m-3 years agoESM + CommonJS-
@juggle/resize-observer4.6m-4 years agoESM + CommonJS-
html-webpack-skip-assets-plugin9.5k-2 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 3690 < 10000.