Back to Explore

humanwhocodes/module-importer

GitHub
1 watchersOpen source

Last release: 2/19/2025

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 source shows evidence of maintenance, with a recent update in 2025-02-19 (v1.0.2) following a multi-year gap since v1.0.1 in 2022-08-18.
  • Apparent update cadence is low and irregular, about 3.5 years between v1.0.1 and v1.0.2, and just over a day between v1.0.0 and v1.0.1, suggesting early stabilization and then a long quiet period.

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v1.0.2

    2/19/2025

    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

    8/18/2022

    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

    8/17/2022

    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