CommonJS vs ES Modules for Express Node
23:40 16 Sep 2023

Could anyone explain what is the best approach for node express app: CommonJS or ES Modules as of today? In the official documentation it shows that CommonJS module is used, however there are many discussions that point to usage of ES Modules for backend development. So I'd like to get some opinions.

Thanks in advance!

node.js express