CommonJS

The Node.js module format based on require() and module.exports.

What is CommonJS in JavaScript?

CommonJS — The Node.js module format based on require() and module.exports.

const reports = require("./reports.js");
module.exports = reports;

Level: Freelancer · More JavaScript terms at this level

Updated