Skip to content

Instantly share code, notes, and snippets.

View drcmda's full-sized avatar
🎯
Focusing

drcmda

🎯
Focusing
View GitHub Profile
@sindresorhus
sindresorhus / esm-package.md
Last active August 29, 2026 01:20
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@donmccurdy
donmccurdy / THREE_COLORSPACE_MANAGEMENT.md
Last active January 2, 2023 08:07
Color management in three.js
@tkrotoff
tkrotoff / FrontendFrameworksPopularity.md
Last active August 11, 2026 16:45
Front-end frameworks popularity (React, Vue, Angular and Svelte)

Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.

Similar analysis:

Personal conclusion

After all those years maintaining this data (since 2018): React is still much more popular and continue to grow faster than alternatives; Vue dates back from 2014 and Svelte from 2016, they should have overthrown React by now.