← All notes

ECMAScript modules in Node.js

Node.js fully supports ECMAScript modules as they are currently specified. [S1]

ESM support

Node.js fully supports ECMAScript modules as they are currently specified. [S1]

Relation to CommonJS

CommonJS modules are the original way to package JavaScript code for Node.js. [S2]

Node.js also supports the ECMAScript modules standard used by browsers. [S2]

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Copyright Node.js contributors. MIT (https://github.com/nodejs/node/blob/main/LICENSE).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Node.js docs, Modules: ECMAScript modules, MIT; Node.js docs, Modules: CommonJS modules, MIT.

Cite this

Permanent ID: iil:note:cw5amhsy

iinventedlight. 2026. "ECMAScript modules in Node.js." iinventedlight Library, iil:note:cw5amhsy, version of 2026-11-06. https://iinventedlight.com/library/notes/node-esm/. License: CC-BY-4.0.

@misc{iil_note_cw5amhsy,
  author = {{iinventedlight}},
  title = {{ECMAScript modules in Node.js}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-06},
  url = {https://iinventedlight.com/library/notes/node-esm/},
  note = {Permanent ID iil:note:cw5amhsy. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/node-esm.md.