ModuleImporter is a Node.js utility that helps you import modules regardless of whether they are CommonJS or ESM, using Node’s `import()` and CommonJS compatibility. It also makes it easier to resolve and import modules from a chosen directory (not just relative to the calling file location), so you can use a single method without compatibility issues.
Project status
- The repository appears largely quiet since its last upstream push on 2025-02-19, with no evidence of ongoing development through 2026, so it does not look actively maintained.
- The update cadence is sparse, with updates at v1.0.2 (2025-02-19), then a long gap back to v1.0.1 (2022-08-18), and another earlier update at v1.0.0 (2022-08-17).
AI summary generated
Recent updates
v1.0.2
v1.0.2 is labeled as a bug fix release. The documented change is that the package now exports TypeScript types via package.json, but the code diff shows additional publishing and packaging-related modifications.
v1.0.1
v1.0.1 is presented as a bug fix to make CommonJS usage work correctly. The implementation was reorganized by introducing a new CommonJS entry module (src/module-importer.cjs) and changing the ESM entry (src/module-importer.js) to re-export that implementation.
v1.0.0
This v1.0.0 release introduces the initial ModuleImporter functionality. It adds new capability to import modules via the humanwhocodes/module-importer package, but the release notes do not specify any API details, options, or behavior changes.
Features