gen-esm-wrapper is a versatile tool for generating ECMAScript module (ESM) wrappers around CommonJS (CJS) modules. This allows seamless integration of CJS packages into modern ESM-focused JavaScript projects. By automatically creating the necessary export statements, it eliminates the need for manual wrapping, streamlining the import process. Ideal for libraries still distributing in CJS format, gen-esm-wrapper simplifies adoption in ESM environments, boosting compatibility and easing the transition to modern JavaScript.
The npm package gen-esm-wrapper had its initial releases in May 2020 with 7 versions. Releases lessened significantly, with only one version published in July 2020, November 2020, June 2021 and September 2021 respectively. Since September 2021 there have been no new versions released.
Gen-esm-wrapper's npm downloads show fluctuation. From March to December 2024, downloads ranged from 36,779 to 61,296. In 2025, downloads generally increased, peaking in June at 146,208. July and August saw drops and September (partial data) shows a further decrease, but remains around average download numbers for the past year.