Skip to content
JS
Package

import-from-esm

Import a module like with require() but from a given path (for ESM)

v2.0.0, 31 Dec 2024MITESM onlyTypes: Bundled
$ npm install import-from-esm

Key numbers

As of 25 Sept 2026
Weekly downloads
2m
+48% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
1 year ago
v2.0.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3m4mSept 2025Mar 2026Sept 2026High 3.1m (25 Aug 2026)Low 853.4k (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.

2,024,341 downloads last week, 10,580,447 in the last month. The 12-month change of +48% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
019 in total
Latest version
2.0.0, 31 Dec 20241 year ago
First published
6 Oct 2023
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

  1. v2 first release 2.0.0, 31 Dec 2024
  2. v1 first release 1.0.0, 11 Oct 2023
  3. v0 first release 0.1.0, 6 Oct 2023

Recent releases

VersionPublished
2.0.031 Dec 2024
1.3.415 Apr 2024
1.3.319 Nov 2023
1.3.219 Nov 2023
1.3.116 Nov 2023
1.3.016 Nov 2023
1.2.216 Nov 2023
1.2.19 Nov 2023
1.2.08 Nov 2023
1.1.37 Nov 2023
1.1.26 Nov 2023
1.1.16 Nov 2023
1.1.06 Nov 2023
1.0.35 Nov 2023
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18.20
Runtimes
-
Unpacked size (npm)
13 kB
Dependencies (2)
debugimport-meta-resolve
npm install import-from-esm
  • jsDelivrhttps://cdn.jsdelivr.net/npm/import-from-esm@2.0.0/
  • unpkghttps://unpkg.com/import-from-esm@2.0.0/
  • esm.shhttps://esm.sh/import-from-esm@2.0.0
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.