Exporting with ES6 syntax
suggest changeThis is the same kind of module as a CommonJS export, written as ESM. Node.js loads export only from an ES module: a .mjs file, or a .js file in a package with "type": "module".
export function printHelloWorld() {
console.log("Hello World!!!");
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents