- ใช้กันแพร่หลายใน Node.js
- ใช้
require()
เพื่อนำเข้า และmodule.exports
หรือexports
เพื่อส่งออก - โหลดแบบ synchronous
js
// ส่งออก
module.exports = { function1, function2 };
// นำเข้า
const module = require('./module');