Files

8 lines
575 B
Markdown
Raw Permalink Normal View History

2023-01-02 04:47:46 +04:00
# CommonJS
2024-08-30 14:10:33 +05:30
CommonJS modules are the original way to package JavaScript code for Node.js. Node.js also supports the ESModules standard used by browsers and other JavaScript run-times, but CJS is still widely used in backend Node.js applications. Sometimes these modules will be written with a .cjs extension.
2023-01-02 04:47:46 +04:00
Visit the following resources to learn more:
2024-06-06 23:23:55 +01:00
- [@article@How the CJS Module System Works](https://blog.risingstack.com/node-js-at-scale-module-system-commonjs-require/)
2026-06-12 11:06:50 +02:00
- [@video@How to Import and Export Modules in CJS](https://www.youtube.com/watch?v=XTND4rjATXA)