.MJS File Extension
Node.js ES Module File
Learn about .MJS files and view a list of programs that open them.
What is a .mjs file?
Learn about .MJS files and view a list of programs that open them.
Properties
More Information
ECMAScript 6 (ES6) introduced the specification for ES Modules, providing a standard for implementing modules in JavaScript. As of 2018, all major web browsers support ES Modules.
However, the popularity of modularized JavaScript pre-dates ES6. Node.js, a JavaScript runtime environment, used CommonJS as the specification for modules. Because so many existing applications were built with CommonJS, when Node.js added support for native ES modules, it controversially introduced the MJS file extension to differentiate the two and prevent applications from breaking.
NOTE: Some developers informally refer to MJS files as "Michael Jackson Script" files.
Technical Details
ECMAScript 6 (ES6) introduced the specification for ES Modules, providing a standard for implementing modules in JavaScript. As of 2018, all major web browsers support ES Modules.
However, the popularity of modularized JavaScript pre-dates ES6. Node.js, a JavaScript runtime environment, used CommonJS as the specification for modules. Because so many existing applications were built with CommonJS, when Node.js added support for native ES modules, it controversially introduced the MJS file extension to differentiate the two and prevent applications from breaking.
NOTE: Some developers informally refer to MJS files as "Michael Jackson Script" files.
How to open .mjs files
To open a .mjs file, you need compatible software that supports this file format.
Programs that open .mjs files:
Quick Facts
- File Extension
- .mjs
- Developer
- N/A
- File Type
- Node.js ES Module File
- Last Updated
- 2025-11-02T02:43:26.416Z