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

Dual is also up, 18.1% to 20.8%. Dual is not bad per se, it helps people, but it’s also big, and it’s not needed with `require(esm)`, so I especially hope those packages move to ESM. Thanks @joyeecheung.bsky.social for `require(esm)`!

0 reposts9 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