Skip to content
JS
Package

desm

get the file directory from import.meta.url

v1.3.1, 17 Jan 2024MITESM onlyTypes: BundledURLs and query strings
$ npm install desm

Key numbers

As of 25 Sept 2026
Weekly downloads
389.1k
+5% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v1.3.1
GitHub stars
116
8 forks
Open issues / PRs
0 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 614.4k (16 Jun 2026)Low 205.3k (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.

389,136 downloads last week, 2,020,641 in the last month. The 12-month change of +5% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
05 in total
Latest version
1.3.1, 17 Jan 20242 years ago
First published
3 Jun 2020
Last push to GitHub
29 Jan 2024969 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
62

Major versions

  1. v1 first release 1.0.0, 3 Jun 2020

Recent releases

VersionPublished
1.3.117 Jan 2024
1.3.026 May 2022
1.2.026 Aug 2021
1.1.029 Nov 2020
1.0.03 Jun 2020
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
4.6 kB
Dependencies (0)
None
npm install desm
  • jsDelivrhttps://cdn.jsdelivr.net/npm/desm@1.3.1/
  • unpkghttps://unpkg.com/desm@1.3.1/
  • esm.shhttps://esm.sh/desm@1.3.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.