The npm package import-from-esm saw active development in late 2023, with 5 releases in October and 12 in November. Release frequency dropped to zero in December of the same year. A single release occurred in April 2024 (1.3.4) and December 2024 (2.0.0). There have been no releases in 2025 as of September 11.
import-from-esm allows seamless importing of ES modules from CommonJS environments. It dynamically loads ES modules using import(), circumventing the typical incompatibility issues. This package simplifies the integration of modern ES module syntax into older CommonJS projects, facilitating code reuse and gradual migration. It returns a promise resolving to the ES module's exports, enabling asynchronous operation within CommonJS. Crucially, it handles module resolution correctly, mirroring Node.js's ES module behavior.
import-from-esm package downloads show strong growth from March 2024 to August 2025, peaking at almost 7 million. September 2025 downloads are significantly lower, likely reflecting incomplete data for the current month. The package exhibits consistent upward momentum overall.