Post

Hello friends and welcome to a new “How is ESM vs CJS going!” 33.4% of the popular packages on npm now includes ESM. Up from 29.6% half a year ago. We have a third! ESM-only is up from 11.5% to 12.6%. This is also the impact of half a year of Node 18 being EOL, making `require(esm)` available

19 reposts84 likes

The graph was getting big and there’s a trend now, I plan on switching to half-yearly updates, and moved some odd quarterly updates out. Also, npm became unusable, this crawl uses `ecosyste.ms` by @andrewnez.bsky.social, thanks Andrew! Data seems to work! Code: github.com/wooorm/npm-e....

github.comGitHub - wooorm/npm-esm-vs-cjs: Data on the share of ESM vs CJS on the public npm registryData on the share of ESM vs CJS on the public npm registry - wooorm/npm-esm-vs-cjs
Titus 🇵🇸@wooorm.com

How it’s going with ESM vs CJS today: 29.6% of the popular packages on npm now includes ESM. Up from 28.8% a quarter ago. ESM-only is up from 10.8% to 11.5%. It’s perhaps all a bit soon after Node 18 became EOL on April 30, making `require(esm)` available everywhere. Maybe next quarter shows more