module 对象


【The module object】

在每个模块中,module 自由变量是对表示当前模块的对象的引用。为了方便,module.exports 也可以通过模块全局变量 exports 访问。module 实际上并不是全局的,而是每个模块局部的。

【In each module, the module free variable is a reference to the object representing the current module. For convenience, module.exports is also accessible via the exports module-global. module is not actually a global but rather local to each module.】