lazlojuly의 글 Node.js module.exports vs. exports을 번역했다. node.js의 module.exports와 exports (노트: 이 글은 Node.js 6.1.0 릴리즈 이후에 작성되었습니다.)

4504

The module.exports is a special object which is included in every JavaScript file in the Node.js application by default. The module is a variable that represents the current module, and exports is an object that will be exposed as a module. So, whatever you assign to module.exports will be exposed as a module.

ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"} Sa("module$exports$mapsapi$util$event.MapsEvent  layout-mode"],e):"object"==typeof exports?module.exports=e(require(". class="envirabox-nav envirabox-next" href="javascript:;">',prev:'